cwl for a Phyloseq command
Hi Michael! I have an R script that takes as input 3 files namely an OTU file, a map and a tree and generates a set of reports in the folder output and test.Rdata in current folder. At command line I call it as follows:
Rscript PhyloseqReport.R otus.tax.biom dog_stool_samples_metadata.tsv otus.tre output test.Rdata
I have started the following cwl script:
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: CommandLineTool
inputs:
otuFile:
type: File
inputBinding:
position: 1
mapFile:
type: File
inputBinding:
position: 2
tre:
type: File
inputBinding:
position: 3
baseCommand: [ Rscript, PhyloSeqReport.R, "results.Rdata" ]
outputs:
results:
type: File
outputBinding:
glob: results.Rdata
How do I capture the fact that the set of reports generated should go in folder output?
Thank you.
Shakun
• 1,837 views
•
link
0 answers
No answers yet.
Log in to answer this question.
I have now modified the PhyloSeqReport.R to run as follows on commandline:
So my cwlfile has been written as follows:
When I run the workflow like this:
I get the following output/error:
Kindly advise. Thank you.
Hello Shakuntala,
The error is from the R script itself and it seems that it doesn't like your input file otus.tax.biom
Does running the command directly work?
Hello again Shakun,
Can you reply with a link to the software so I can try it out myself?
Hi Michael, The command does work directly. I checked some other similar queries and it seems that cwl has some issue with PhyloSeq package. I don't know what to do. Gerrit said he will try it.
Hello Shakuntala Baichoo!
We believe that this post does not fit the main topic of this site.
CWL support has moved, please refer to CWL user support moving to https://cwl.discourse.group/; many thanks to Biostars for over 4 years of support!
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!