Giter Club home page Giter Club logo

Comments (8)

dpryan79 avatar dpryan79 commented on June 24, 2024

What does samtools view -H your_file.bam | grep chr1_CT_converted show? What about grep chr1_CT_converted your_fasta_file?

from methyldackel.

Faten-Taki avatar Faten-Taki commented on June 24, 2024

samtools view -H MUP_merged_sorted.bam | grep chr1_CT_converted
@sq SN:chr1_CT_converted LN:197195432

grep chr1_CT_converted mm9.fa
#returns nothing

(as a side note: the reference genome is within the same folder as the output of bismark_genome_preparation with the CT_conversion.fa and GA_conversion.fa files. Even when I use the conversion fasta files, I get the same error)

from methyldackel.

dpryan79 avatar dpryan79 commented on June 24, 2024

It looks like you're using an intermediate file created by bismark rather than what should be the final one. The final BAM file should contain chromosome names like chr1 and chr2.

from methyldackel.

Faten-Taki avatar Faten-Taki commented on June 24, 2024

thank you for pointing that out. I will go ahead and double check that.
Thank you for your time and help!

from methyldackel.

crazyhottommy avatar crazyhottommy commented on June 24, 2024

I got a similar warning:

faidx_fetch_seq returned -2 while trying to fetch the sequence for tid chr1:999998-2000000!
Note that the output will be truncated!
[E::faidx_adjust_position] The sequence "chr1" not found

fasta and bam:

samtools view -H my.sorted.bam | grep "chr1"
@SQ     SN:chr1 LN:248956422
@SQ     SN:chr10        LN:133797422
@SQ     SN:chr11        LN:135086622
@SQ     SN:chr12        LN:133275309

cat GRCh38.primary_assembly.genome.fa | grep ">" 
>chr1 1
>chr2 2
>chr3 3

from methyldackel.

dpryan79 avatar dpryan79 commented on June 24, 2024

If you look through the .fai file, is there a chr1 entry?

from methyldackel.

crazyhottommy avatar crazyhottommy commented on June 24, 2024
cat GRCh38.primary_assembly.genome.fa.fa
i | grep chr1
chr1    248956422       8       60      61
chr10   133797422       1702798442      60      61
chr11   135086622       1838825832      60      61
chr12   133275309       1976163908      60      61
chr13   114364328       2111660483      60      61

from methyldackel.

dpryan79 avatar dpryan79 commented on June 24, 2024

Odd, try recreating the fasta index, maybe that will help.

from methyldackel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.