Snakemake - How do I use each line of a file as an input?
问题 I need to use each line of the file tissuesused.txt as an input for a parallelized rule in snakemake. I think there are about 48 jobs I would like to call in total. for line in $(cat tissuesused.txt) do echo "Sorting $line.phen_fastqtl.bed to $line/$line.pheno.bed..." bedtools sort -header -i $line/$line.phen_fastqtl.bed > $line/$line.pheno.bed echo "bgzipping $line/$line.pheno.bed..." bgzip -f $line/$line.pheno.bed #figure out where tabix outputs echo "Indexing $line/$line.pheno.bed.gz..."