ZainabKamel / NGS2-Project

This project is submitted in a partial fulfillment of the requirment of CIT-659 "NGS2" course for Nile University
Other
1 stars 0 forks source link

Hisat For loop in differential expression #10

Open ZainabKamel opened 4 years ago

ZainabKamel commented 4 years ago

INDEX=~/workdir/diff_exp/ref/ERCC92 we were fRUNLOG=runlog.txt READS_DIR=~/workdir/sample_data/ mkdir bam

for SAMPLE in HBR UHR; do for REPLICATE in 1 2 3; do R1=$READS_DIR/${SAMPLE}_Rep${REPLICATE}read1.fastq.gz R2=$READS_DIR/${SAMPLE}_Rep${REPLICATE}read2.fastq.gz BAM=bam/${SAMPLE}_${REPLICATE}.bam

    hisat2 $INDEX -1 $R1 -2 $R2 | samtools sort > $BAM
    samtools index $BAM
done

done

ZainabKamel commented 4 years ago

No input file and 0% reads because naming of files are different

ZainabKamel commented 4 years ago

for SAMPLE in hs_T47D_shCTRL_RNAseq_rep hs_T47D_shNR2F2_RNAseq_rep; do for REPLICATE in 1 2; do R=$READS_DIR/${SAMPLE}${REPLICATE}*.fastq.gz; BAM=bam/${SAMPLE}${REPLICATE}.bam; hisat2 $INDEX -U $R | samtools sort > $BAM; samtools index $BAM; done; done