Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • BAM -> FASTQ why can I not produce the same result?

    Dear all, I've been trying to test if I can produce the same fusion call starting from BAM instead of FASQ. My STAR command is as such.

    HTML Code:
    STAR --genomeDir /index/hg38.p5/ \
    --readFilesIn T1_1.fq.gz T1_2.fq.gz \
    --readFilesCommand zcat --outFileNamePrefix T1 --outSAMtype BAM SortedByCoordinate --quantMode GeneCounts --sjdbGTFfile /index/hg38.gtf
    This is how the resulting BAM file looks like.

    HTML Code:
    samtools flagstat T1Aligned.sortedByCoord.out.bam
    
    121206267 + 0 in total (QC-passed reads + QC-failed reads)
    11756519 + 0 secondary
    0 + 0 supplementary
    0 + 0 duplicates
    121206267 + 0 mapped (100.00% : N/A)
    109449748 + 0 paired in sequencing
    54766664 + 0 read1
    54683084 + 0 read2
    109354332 + 0 properly paired (99.91% : N/A)
    109354332 + 0 with itself and mate mapped
    95416 + 0 singletons (0.09% : N/A)
    0 + 0 with mate mapped to a different chr
    0 + 0 with mate mapped to a different chr (mapQ>=5)
    However, I have tried a number of tools including the following.
    HTML Code:
    1. samtools sort -n --threads 4 ./T1Aligned.sortedByCoord.out.bam|samtools fastq -1 T1_R1_.fq -2 T1_R2_.fq -0 test.fq -
    I tried converting back to uBAM and doing it again.

    HTML Code:
    /picard-tools-2.2.4/picard.jar RevertSam I=T1Aligned.sortedByCoord.out.bam O=T1.ubam QUIET=true VALIDATION_STRINGENCY=SILENT
    
    /picard-tools-2.2.4/picard.jar SamToFastq INPUT=T1.ubam FASTQ=T1_R1_.fq SECOND_END_FASTQ=T2_R2_.fq VALIDATION_STRINGENCY=SILENT
    I also tried out this tutorial herehttps://gist.github.com/darencard/72...64ca512a04a6dd, but failed because of some read mismatch.

    I also tried bedtools bamtofastq but nothing works. When I input fastq vs what I can derive from BAM-> Fastq I'm not getting the same fusion output as I did previously. Anybody with suggestions? Thanks!

  • #2
    Cross-posted on Biostars

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Essential Discoveries and Tools in Epitranscriptomics
      by seqadmin


      The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
      Yesterday, 07:01 AM
    • seqadmin
      Current Approaches to Protein Sequencing
      by seqadmin


      Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
      04-04-2024, 04:25 PM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 04-11-2024, 12:08 PM
    0 responses
    54 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 10:19 PM
    0 responses
    50 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 09:21 AM
    0 responses
    44 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-04-2024, 09:00 AM
    0 responses
    55 views
    0 likes
    Last Post seqadmin  
    Working...
    X