Error after STAR mapping

Error after STAR mapping

0

Hi, I’m doing the STAR mapping, but I get the bam files with some problems.When I use the command
samtools flagstat SRR7195620_2.fastq.gz_Aligned.sortedByCoord.out.bam to see the details of the bam file,it shows this:

3266075 + 0 in total (QC-passed reads + QC-failed reads)
1044500 + 0 secondary
0 + 0 supplementary
0 + 0 duplicates
3266075 + 0 mapped (100.00% : N/A)
0 + 0 paired in sequencing
0 + 0 read1
0 + 0 read2
0 + 0 properly paired (N/A : N/A)
0 + 0 with itself and mate mapped
0 + 0 singletons (N/A : N/A)
0 + 0 with mate mapped to a different chr
0 + 0 with mate mapped to a different chr (mapQ>=5)

My command to build STAR index is

STAR --runThreadN 20 --runMode  genomeGenerate --genomeDir  ~/home/STAR_human_index/1 --genomeFastaFiles  ~/referenceGenomes/FASTA/Homo_sapiens.GRCh38.dna.primary_assembly.fa --sjdbGTFfile ~/referenceGenomes/GTF/Homo_sapiens.GRCh38.98.gtf --sjdbOverhang 109

And my command to do STAR mapping is

ls -d SRR*|while read SRR; do echo $SRR; STAR --runThreadN 20 --genomeDir ~/home/STAR_human_index/1 --readFilesCommand gunzip -c --readFilesIn ~/home/fastq/${SRR} --outSAMtype BAM SortedByCoordinate --quantMode TranscriptomeSAM GeneCounts --outFileNamePrefix ~/BAM_results/bamtest/${SRR}_; done

I don’t know where the problem is,can anyone do me a favor?Thanks a lot!


mapping


STAR

• 52 views


Login
before adding your answer.

Read more here: Source link