Comments (8)
It seems like you are reinventing a workflow system like snakemake. Maybe that solves the needs that you try to take care of in your python code.
I can also recommend the python shlex
module, which you could use to avoid splitting the arguments in a list:
import shlex
cmd_chopper = shlex.split('chopper -l 1 -q 3 --headcrop 30 --tailcrop 30 --threads 12')
from chopper.
Hi,
Yes, that would be possible, I will put your request on the list :-)
Wouter
from chopper.
Oh, that would be great! :)
from chopper.
Any progress on this? :)
I can't implement chopper in my pipeline. I've tried piping with subprocess.Popen
, but get the same error.
from chopper.
I can't implement chopper in my pipeline. I've tried piping with subprocess.Popen, but get the same error.
That should work, in principle. Which (python?) code leads to that error?
from chopper.
My bad. I found a mistake in my code.
It seems to work doing this:
input1 = 'barcode37.fastq'
cmd_cat = ['cat', input1]
fastq = subprocess.Popen(cmd_cat, stdout=subprocess.PIPE)
cmd_chopper = ['chopper', '-l', '1','-q', '3','--headcrop', '30', '--tailcrop', '30', '--threads', '12']
reads_trim = open('test.fastq', 'w')
chopper = subprocess.Popen(cmd_chopper, stdin=fastq.stdout, stdout=reads_trim)
from chopper.
Maybe you could consider adding this functionality to make the use of this tool more straightforward?
@wdecoster Any update of this issue? I also found this enhancement to be very useful. But the latest chopper 0.7.0
still do not have the feature.
If you agree, I would be happy to implement this feature and make a PR.
from chopper.
Implemented thanks to @JMencius! I will make a new release soon.
from chopper.
Related Issues (20)
- sequencing_summary.txt feature HOT 1
- /lib64/libc.so.6 issue HOT 5
- Filter out reads marked as contaminants? HOT 1
- Cannot Download Chopper HOT 4
- Nanopore barcode/adapter detection HOT 2
- Give minimap more threads when available. HOT 4
- missing ".with_cigar()" in Aligner? HOT 7
- Recommended defaults? HOT 5
- Issue in Installation HOT 7
- Not running on aarch64 HOT 11
- Not working on M2 Mac HOT 6
- Help with --contam parameter HOT 1
- chopper with bam files HOT 1
- Instatlation issue HOT 2
- confuse problem HOT 10
- minimap2 preset for `--contam` HOT 9
- chopper v0.8.0 GLIBC_2.XX not found HOT 2
- Cannot use either wget, conda, or mamba to install chopper HOT 7
- --contam :Filter contaminants against a fasta
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 chopper.