How to input multiple files from a list of files
1
1
Entering edit mode
6.1 years ago
Goku ▴ 10

I have a list of files in bam_files.txt which looks like this

less bam_files.txt

/home/test/2cells_2_trim.bam
/home/test/6h_1_trim.bam
/home/test/2cells_1_trim.bam
/home/test/6h_2_trim.bam

I want to do something like this

cuffnorm -o cuffnorm_out /home/software/genes.gtf test/*.bam

but while reading files from bam_files.txt and not directly from directory (as shown above).

Can someone please help. Thanks a lot. Appreciate your help.

bash linux RNA-Seq • 1.1k views
ADD COMMENT
0
Entering edit mode
6.1 years ago

Perhaps a bash process substitution will help:

$ cuffnorm ... <(cat bam_files.txt | tr '\n' ' ')
ADD COMMENT
0
Entering edit mode
ADD REPLY

Login before adding your answer.

Traffic: 2193 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6