Giter Club home page Giter Club logo

Comments (7)

sjackman avatar sjackman commented on June 3, 2024

I've fixed 1. I will fix 2. Thanks for both suggestions, @abmudd!

from tigmint.

sjackman avatar sjackman commented on June 3, 2024

awk is quite slow. Do you know of a faster tool to filter a SAM or BAM file based on AS and NM?

from tigmint.

sjackman avatar sjackman commented on June 3, 2024

Did you get Tigmint running? Any trouble with installation?

from tigmint.

abmudd avatar abmudd commented on June 3, 2024

I don't know if pysam would be any faster than gawk. You can run the gawk command as a single line though:

gawk -v ascore=$ASCORE -v mismatch=$MISMATCH -F'\t' ' BEGIN { print "Flags\tRname\tPos\tMapq\tAS\tNM\tBX\tMI" } { as = bx = mi = nm = "NA" } match($$0, "AS:.:([^\t]*)", x) { as = x[1] } match($$0, "NM:.:([^\t]*)", x) { nm = x[1] } match($$0, "BX:Z:([^\t]*)", x) { bx = x[1] } match($$0, "MI:i:([^\t]*)", x) { mi = x[1] } { if (as >= ascore && nm <= mismatch) {print $2 "\t" $3 "\t" $4 "\t" $5 "\t" as "\t" nm "\t" bx "\t" mi }}'

Unfortunately, I have been unable to get tigmint running due to the large number of dependencies and conflicts within my system.

from tigmint.

sjackman avatar sjackman commented on June 3, 2024

I'll merge the gawk steps, hopefully next week. I'll experiment with finding faster options, and try out pysam.

Sorry to hear of your troubles installing Tigmint. It does have a lot of dependencies. Have you tried using Linuxbrew to install the dependencies? 🍺🐧 http://linuxbrew.sh
Tigmint has a Brewfile: https://github.com/bcgsc/tigmint/blob/master/Brewfile
I'll create a Docker image.

from tigmint.

sjackman avatar sjackman commented on June 3, 2024

I've created a Docker image bcgsc/tigmint with all the dependencies installed.
https://hub.docker.com/r/bcgsc/tigmint/
https://github.com/bcgsc/tigmint/blob/master/Dockerfile

docker run -it --name=tigmint bcgsc/tigmint
tigmint-make help

from tigmint.

sjackman avatar sjackman commented on June 3, 2024

Alignments are now filtered (in one step) by tigmint-molecule, which takes a SAM/BAM file of reads aligned to the reference (sorted by barcode with samtools -t BX) and outputs a BED file of molecules.

from tigmint.

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.