Giter Club home page Giter Club logo

Comments (1)

charlesgregory avatar charlesgregory commented on June 15, 2024

No I don't have it explicitly documented anywhere.

  • qname: query name of the original read
  • sc_q_scores: phred-scaled base quality scores of the soft-clipped sequence
  • sc_seq: nucleotide sequence of the soft-clipped sequence
  • sc_avg_bq: average base quality of soft-clipped sequence
  • avg_bq: average base quality of the entire read
  • art_status: boolean value specifying whether this soft-clip was identified as artifact or not

As far as a histogram goes, I think creating the histogram could be done with bash tools.

This line below should extract the lengths of all the soft-clipped sequences from fade's stats-clip output:

cat fade_stats_clip_output.tsv | cut -f3 | awk '{ print length }' > soft_clipped.lengths.txt

Then by following this stack overflow question: https://stackoverflow.com/questions/39614454/creating-histograms-in-bash

If you save their script to the file hist.sh (I would also modify the bin size to be something like 3bp):

chmod +x hist.sh
./hist.sh  soft_clipped.lengths.txt

That could output what you need. It should output a column of bins and a column of bin sizes.

Though I haven't tested this yet. I could add a histogram-clips subcommand to fade, though it would yield similar results. If you would like to plot a histogram, that would be outside of fade's scope, but the stats-clip output has the data you need. Let me know if that helps at all.

from fade.

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.