Question: How can I set a directory as planemo tool_init --example_input?
0
Seongmin Choi • 20 wrote:
Hi all,
I'm trying to publish a script that takes a directory which includes dozens of SNP VCFs as a planemo example input.
However, whenever I run planemo t mytool.xml, I get a IOError: ... Is a directory.
Does anyone know how to set a directory as plenemo --example_input?
planemo tool_init --force \
--id 'OneKG_filter' \
--name 'Filter out common variants in 1000G SNP DB \
--requirement python \
--requirement pytabix \
--example_command 'python /dat1/github/rainbow/scripts/dbflt_1000g.py /dat1/github/rainbow/examples/test.vcf /dat1/rgkorea/bam_files/rainbow/data/db/snp_db/1000G > /dat1/github/rainbow/examples/test_1000g.vcf' \
--example_input /dat1/github/rainbow/examples/test.vcf \
--example_input /dat1/rgkorea/bam_files/rainbow/data/db/snp_db/1000G \
--example_output /dat1/github/rainbow/examples/test_1000g.vcf \
--test_case \
--help_from_command 'python /dat1/github/rainbow/scripts/dbflt_1000g.py' \
--cite_url https://github.com/alexbmp/rainbow
Could you please show us the command and the error it results in?
planemo t
will test everything that looks like a tool in the current directory.Hello Martin,
The following lines are the command and the resulting error. Inside the code,
/dat1/rgkorea/bam_files/rainbow/data/db/snp_db/1000G
is a directory that the python file uses as an input.* THIS THREAD HAS BEEN EDITED FOR CLARITY IN MAY 16TH 20:20 (KST) *
Code:
Error (excerpt from error.log) :
I've edited my reply for more clarity. As shown, the script emits an "Is a directory" error.