Hi all,
I am using gnu parallel for cufflinks.I had question on how to give the prefix to the output files.Since I have a lot of bam samples and the output files produced are of the same name and would replace each time for the new sample.
parallel -j $NSLOTS --xapply \
"cufflinks -G gencode.v19.annotation.gtf {1} > {1/.}." ::: /input/*.bam
I am using this command above but it does not work.
Thanks,
Ron
Could you include an example of the input and the command you expected it to run?
I mean the input files are of different name but cufflinks generates files
transcripts.gtf
,genes.fpkm_tracking
, andisoforms.fpkm_tracking
.So every time a sample is run,these output files with same name (transcripts.gtf
,genes.fpkm_tracking
, andisoforms.fpkm_tracking
) are generated again. I want these output files to be named according to the sample.e.g
508_C.bam
would be named as508_C.genes.fpkm_tracking
,508_C.transcripts.gtf
.Ahh. So you want GNU Parallel to help fix a problem in cufflinks. It cannot do that directly, but you can help it by making a function that does that for your. Untested: