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

index using gff3 file chromosome 15 and Alignment using for loop #11

Open Naiera13 opened 4 years ago

Naiera13 commented 4 years ago

INDEX="/home/hp/Desktop/Project/chromosome15/Homo_sapiens.GRCh38.99.chromosome.15.gff3/" RUNLOG=runlog.txt READS_DIR="/home/hp/Desktop/Project/" mkdir bam 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 GTF="/home/hp/Desktop/Project/Chromosome15/Homo_sapiens.GRCh38.99.chromosome.15.gff3" featureCounts -a $GFF3 -g Name -o counts.txt bam/hs_T47D_shCTRL_RNAseq_rep.bam bam/hs_T47D_shNR2F2_RNAseq_rep.bam

Naiera13 commented 4 years ago

cat counts.txt | cut -f 1,7-10 > simple_counts.txt cat simple_counts.txt | Rscript deseq1.r 2x2 > results_deseq1.tsv cat results_deseq1.tsv | awk ' $8 < 0.05 { print $0 }' > filtered_results_deseq1.tsv cat filtered_results_deseq1.tsv | Rscript draw-heatmap.r > hisat_output.pdf

Naiera13 commented 4 years ago

hisat_output (1).pdf