GithubHelp home page GithubHelp logo

filter_by_count failed about cdna_cupcake HOT 3 CLOSED

yuqiu77 avatar yuqiu77 commented on July 2, 2024
filter_by_count failed

from cdna_cupcake.

Comments (3)

Magdoll avatar Magdoll commented on July 2, 2024

Hi @yuqiu77 ,

Please add the --dun_use_group_count option and this error should go away.

THanks,
--Liz

from cdna_cupcake.

juheon avatar juheon commented on July 2, 2024

Could I use 'filter_by_count.py' for post-collapsing reads of FLNC reads (ISO-seq3)?

According to the Wiki, I need to an output of 'get_abundance_post_collapse.py' to run 'filter_by_count.py'. However, since I use FLNC reads instead of clustered reads, I can't run 'get_abundance_post_collapse.py' due to the absence of 'cluster_report.csv', which is the output of the clustering step.

I want to filter out singleton FLNC reads as ISO-seq3 clustering does

from cdna_cupcake.

Magdoll avatar Magdoll commented on July 2, 2024

Hi @juheon ,

You can make a "mock" abundance.txt file for the FLNC collapsed result using the Linux commands below.

Suppose your collapsed output prefix is out.collapsed.xxxx. You need to generate the file output.collapsed.abundance.txt.

echo -e "pbid\tcount_fl" > output.collapsed.abundance.txt
paste <(awk '{print $1}' output.collapsed.group.txt) <(awk -F , '{print NF}' output.collapsed.group.txt ) >> output.collapsed.abundance.txt

This will generate an output that has the format:

pbid    count_fl
PB.1.1  1
PB.1.2  2
PB.1.3  2
PB.2.1  26
PB.2.2  1
PB.2.3  37
PB.2.4  2

which then allows you to run:

filter_by_count.py output.collapsed --dun_use_group_count

from cdna_cupcake.

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.