Comments (7)
I've fixed 1
. I will fix 2
. Thanks for both suggestions, @abmudd!
from tigmint.
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.
Did you get Tigmint running? Any trouble with installation?
from tigmint.
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.
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.
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.
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)
- About samtools invalid option in tigmint-make arcs mode HOT 4
- pre-alignment HOT 2
- Forward+reverse + long reads HOT 4
- yet another "make: *** No rule to make target" issue HOT 5
- Feature has length = 0, Skipping - followed by empty output from tigmint-long HOT 9
- Understanding tigmint-long outputs HOT 3
- tigmint compilation issue HOT 2
- _sqlite3.cpython-310-x86_64-linux-gnu.so: undefined symbol: sqlite3_trace_v2
- Error : no progress of scaffolding running HOT 5
- tigmint-long error HOT 1
- Respect $TMPDIR as anticipated by sort tool HOT 1
- samtools sort may be replaced by bamsort which scales better HOT 2
- pigz may be better replaced by bgzip HOT 2
- tigmint-make ignores $PATH and is supposed to be run from unpacked source tree instead HOT 3
- README does not list all dependencies HOT 2
- Does bin/tigmint_estimate_dist.py really work with FASTA files as well? HOT 5
- src/long-to-linked-pe v1.0: Using more than 6 threads does not scale, reverting to 6. HOT 5
- tigmint_molecule_paf.py: TypeError: expected string or bytes-like object HOT 11
- Cannot compile the bundled while modified copy of make: make-4.1/glob/glob.c:1342: undefined reference to `__alloca' HOT 6
- tigmint-make: minimap2 is being called with -y argument HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tigmint.