Giter Site home page Giter Site logo

bam to fastq one liner about oneliners HOT 2 OPEN

stephenturner avatar stephenturner commented on September 24, 2024
bam to fastq one liner

from oneliners.

Comments (2)

stephenturner avatar stephenturner commented on September 24, 2024

Thanks. Suggestion / pull request welcomed.

Stephen

Sent from mobile.

On Jun 15, 2015, at 10:26 AM, LukeBraidwood [email protected] wrote:

Hey,

Thanks very much for putting these explanations and tools up. I think the one liner you have put for converting bam to fastq is inappropriate (or should be described differently). The problem is that your awk prints fields 1, 10, and 11 in the bam.

Field 10 is called SEQ and represents the query sequence to which the read is aligned. However alignment sequences are always represented on the plus strand of the reference (http://chagall.med.cornell.edu/NGScourse/SAM.pdf, http://genome.sph.umich.edu/wiki/SAM), meaning that for stranded bams this tool is inappropriate.

Thanks,

Luke


Reply to this email directly or view it on GitHub.

from oneliners.

LukeBraidwood avatar LukeBraidwood commented on September 24, 2024

Dear Stephen,

Sorry for the slow reply, just remembered this exchange. I'm currently
using the samtofastq tool from picard tools, which has an option to
regenerate the RC of alignments to the negative strand:
http://broadinstitute.github.io/picard/command-line-overview.html#SamToFastq

Cheers,

Luke

On Mon, Jun 15, 2015 at 4:36 PM, Stephen Turner [email protected]
wrote:

Thanks. Suggestion / pull request welcomed.

Stephen

Sent from mobile.

On Jun 15, 2015, at 10:26 AM, LukeBraidwood [email protected]
wrote:

Hey,

Thanks very much for putting these explanations and tools up. I think
the one liner you have put for converting bam to fastq is inappropriate (or
should be described differently). The problem is that your awk prints
fields 1, 10, and 11 in the bam.

Field 10 is called SEQ and represents the query sequence to which the
read is aligned. However alignment sequences are always represented on the
plus strand of the reference (
http://chagall.med.cornell.edu/NGScourse/SAM.pdf,
http://genome.sph.umich.edu/wiki/SAM), meaning that for stranded bams
this tool is inappropriate.

Thanks,

Luke


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#13 (comment)
.

from oneliners.

Related Issues (10)

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.