Unconfigured Ad
Collapse
X
-
Great that worked for you! For those who really want the discard-untrimmed option, you would need to get the the version from GitHub (directly from version control). cutadapt 1.2rc2, available on Google code, does not have the option. I'll make a release soon to remedy this.
-
Thanks! I downloaded and installed v1.2 and get an error when I try --discard-untrimmed. It doesn't seem to recognize that option, but I do see "--untrimmed-output=FILE" which accomplishes the same goal (and is actually even better).
Leave a comment:
-
There was a patch by James Casbon, which implements such an option for cutadapt. I have now integrated his work into cutadapt. That is, the most recent version of cutadapt, which you can get from https://github.com/marcelm/cutadapt , has a "--discard-untrimmed" option.
Leave a comment:
-
Filtering out reads lacking adapters
I'm trying to use cutadapt to remove an adapter sequence from my reads but I'd also like to discard any sequences that do not have an adapter (the adapter was added in an enrichment step prior to library construction, so reads lacking the adapter could be artifacts or contaminants). The --discard option seems to do the opposite of that. Would that be easy to change in cutadapt, is there a different tool that does something like this, or should I use a more roundabout option (based on identifying the reads not discarded by not having an adapter)?
Thanks,
Erick
Leave a comment:
-
Originally posted by mmartin View PostI don't know the oligo sequences, but if you want to use them with cutadapt, then there is no need to convert them to colorspace: Since version 1.1, you can give the adapter in basespace and cutadapt converts it for you.
Thanks Martin,
That helped, I managed to locate the oligo sequences
Regards,
Craig
Leave a comment:
-
I don't know the oligo sequences, but if you want to use them with cutadapt, then there is no need to convert them to colorspace: Since version 1.1, you can give the adapter in basespace and cutadapt converts it for you.Originally posted by Braganca View PostCan you please inform me how you obtained the oligo sequences, and how you managed to get them in colourspace?
Leave a comment:
-
Hi Flobpf,Originally posted by flobpf View PostHi Marcel,
As I said above, cutadapt worked well to trim the adapters. I used the following command line
Cutadapt produced the two expected output files. However, when I run BFAST using these files, it gives me the following errors:Code:cutadapt-1.1/bin/cutadapt --colorspace --trim-primer -e 0.12 -a 2130003001020221302222 -a 201122001 -a 2132113130301020331 -g 2130003001020221302222 -g 201122001 -g 2132113130301020331 -m 20 -q 20 -O 5 -x proc_ -o INPFILE.trim.fastq --untrimmed-output=INPFILE.untrim.fastq INPFILE.csfasta INPFILE.qual > INPFILE.stats
With trimmed file
With untrimmed file
BFAST ran fine with the original, "un-cutadapted" FASTQ file created by merging CSFASTA+QUAL using solid2fastq.pl in BFAST. No errors there.
My BFAST command is
Have you seen this before? Anything wrong with my cutadapt command line? I'd appreciate any suggestions on how to fix this problem.Code:bfast easyalign -f ../_MOUSEGENOME/Mus_musculus.GRCm38.68.dna_rm.toplevel.fa -r INPFILE.trim.fastq -A 1 -n 4 > INPFILE.trim.fastq.easyalign
Thanks
I'm having trouble determining which adapter sequences to use, as the SOLiD preparation guide is not clear on this. Furthermore, those oligos that appear are in basespace.
Can you please inform me how you obtained the oligo sequences, and how you managed to get them in colourspace?
I have SOLiD 4 data, but I was not involved in preparing or sequencing the data.
Regards,
Craig
Leave a comment:
-
I haven't used BFAST in a while, but I think it requires that the primer base is still in the read. Could you try leaving out the --trim-primer option?
Leave a comment:
-
Hi Marcel,
As I said above, cutadapt worked well to trim the adapters. I used the following command line
Cutadapt produced the two expected output files. However, when I run BFAST using these files, it gives me the following errors:Code:cutadapt-1.1/bin/cutadapt --colorspace --trim-primer -e 0.12 -a 2130003001020221302222 -a 201122001 -a 2132113130301020331 -g 2130003001020221302222 -g 201122001 -g 2132113130301020331 -m 20 -q 20 -O 5 -x proc_ -o INPFILE.trim.fastq --untrimmed-output=INPFILE.untrim.fastq INPFILE.csfasta INPFILE.qual > INPFILE.stats
With trimmed file
With untrimmed file*** glibc detected *** bfast: malloc(): memory corruption: 0x00000000023f7e80 **
BFAST ran fine with the original, "un-cutadapted" FASTQ file created by merging CSFASTA+QUAL using solid2fastq.pl in BFAST. No errors there.bfast: ../bfast/RGMatch.c:154: RGMatchPrint: Assertion `m->qualLength > 0' failed.
My BFAST command is
Have you seen this before? Anything wrong with my cutadapt command line? I'd appreciate any suggestions on how to fix this problem.Code:bfast easyalign -f ../_MOUSEGENOME/Mus_musculus.GRCm38.68.dna_rm.toplevel.fa -r INPFILE.trim.fastq -A 1 -n 4 > INPFILE.trim.fastq.easyalign
Thanks
Leave a comment:
-
That helps. ThanksIf you want FASTQ files that contain colorspace reads in which the colors are encoded as numbers 0, 1, 2, 3, then this is possible, simply don’t use --maq, --bwa or --double-encode
OK. Thats better. I had misunderstood what double-encoding is.For example, the colorspace sequence 0011321 would be AACCTGC in double-encoded form. This is not the same as conversion to basespace! The read is still in colorspace, only letters are used instead of digits.
Thanks for your help!
Leave a comment:
-
Hello,
I’ll answer your questions below, but I have also updated the cutadapt README section on colorspace reads. Perhaps that also helps a bit.
I'm not sure what kind of output you would like to have. If you want a pair of csfasta/qual files, then this has been answered a few messages ago (in short: it’s currently not supported). If you want FASTQ files that contain colorspace reads in which the colors are encoded as numbers 0, 1, 2, 3, then this is possible, simply don’t use --maq, --bwa or --double-encode (see also the README file I linked to above).Originally posted by flobpf View PostHi,
I'm using cutadapt tool v1.1 to trim adapters from my SOLiD colorspace reads. The tool does trim the adapters out, however, I haven't been able to get my reads back in colorspace.
Cutadapt never converts reads to basespace since that should be done after read mapping.cutadapt has been converting them to basespace by default. Wonder if I'm missing something? Have you seen this before?
Please read through the descriptions of the --maq, --bwa and --double-encode options that are shown when running cutadapt -h. In summary: --maq is the same as --bwa. Both options imply --colorspace and --double-encode - you can simply leave them out.My command line is as follows:
I have tried changing output to --maq but still no effect.cutadapt-1.1/bin/cutadapt --colorspace -e 0.12 -a 2130003001020221302222 -a 201122001 -a 2132113130301020331 -x out_ --bwa -o out.fastq --untrimmed-output=out.fastq.untrimmed --double-encode filename.csfasta filename.qual
Hm, I haven’t seen recent SOLiD files for a few months, but I guess they are not double-encoded. I guess the term is confusing. I’ll just copy the text from the README section I have just written. I hope that helps.I was also wondering if the --double-encode option is required. I'm an absolute beginner to SOLiD reads (mostly I do Illumina), so I ask - aren't all recent SOLiD reads double-encoded? I may be wrong about this, though.
Double-encoding, BWA and MAQ
The read mappers MAQ and BWA (and possibly others) need their colorspace input reads to be in a so-called "double encoding". This simply means that they cannot deal with the characters 0, 1, 2, 3 in the reads, but require that the letters A, C, G, T be used for colors. For example, the colorspace sequence 0011321 would be AACCTGC in double-encoded form. This is not the same as conversion to basespace! The read is still in colorspace, only letters are used instead of digits. If that sounds confusing, that is because it is.
Note that MAQ is unmaintained and should not be used in new projects.
BWA’s colorspace support was dropped in versions more recent than 0.5.9, but that version works well.
When you want to trim reads that will be mapped with BWA or MAQ, you can use the --bwa option, which enables colorspace mode (-c), double-encoding (-d) and primer trimming (-t), all of which are required for BWA, in addition to some other useful options.
There is also the --maq option, which is simply another name for the --bwa option.
Leave a comment:
-
cutadapt for solid reads
Hi,
I'm using cutadapt tool v1.1 to trim adapters from my SOLiD colorspace reads. The tool does trim the adapters out, however, I haven't been able to get my reads back in colorspace. cutadapt has been converting them to basespace by default. Wonder if I'm missing something? Have you seen this before?
My command line is as follows:
I have tried changing output to --maq but still no effect.cutadapt-1.1/bin/cutadapt --colorspace -e 0.12 -a 2130003001020221302222 -a 201122001 -a 2132113130301020331 -x out_ --bwa -o out.fastq --untrimmed-output=out.fastq.untrimmed --double-encode filename.csfasta filename.qual
I was also wondering if the --double-encode option is required. I'm an absolute beginner to SOLiD reads (mostly I do Illumina), so I ask - aren't all recent SOLiD reads double-encoded? I may be wrong about this, though.
Other than this, I have found this tool perfect for my purposes!
Thanks!
Leave a comment:
-
Quoting from the first lines that appear when you run "cutadapt --help":
Usage: cutadapt [options] <FASTA/FASTQ FILE> [<QUALITY FILE>]
Reads a FASTA or FASTQ file, finds and removes adapters,
and writes the changed sequence to standard output.
When finished, statistics are printed to standard error.
Use a dash "-" as file name to read from standard input
(FASTA/FASTQ is autodetected).
Leave a comment:
-
s silly question:
how can i pipeline cutadapt with other program ? cutadapt seems not being able to read from STDIN, so i cannot use "|"?
Leave a comment:
-
Sorry, csfasta/qual output is not supported at the moment. You will have to use a separate program to convert colorspace FASTQ to csfasta/qual (I think someone posted one in the forum). Don't use the --maq option if you do that. Which read mapper do you use that does not support colorspace FASTQ?
Leave a comment:
Latest Articles
Collapse
-
by SEQadmin2
Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?
Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating...-
Channel: Articles
10-14-2026, 09:55 AM -
-
by SEQadmin2
Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.
We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing...-
Channel: Articles
-
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, Yesterday, 11:13 AM
|
0 responses
19 views
0 reactions
|
Last Post
by SEQadmin2
Yesterday, 11:13 AM
|
||
|
Started by SEQadmin2, Yesterday, 10:48 AM
|
0 responses
18 views
0 reactions
|
Last Post
by SEQadmin2
Yesterday, 10:48 AM
|
||
|
Started by SEQadmin2, 10-15-2026, 10:52 AM
|
0 responses
36 views
0 reactions
|
Last Post
by SEQadmin2
10-15-2026, 10:52 AM
|
||
|
Started by SEQadmin2, 10-14-2026, 05:39 AM
|
0 responses
42 views
0 reactions
|
Last Post
by SEQadmin2
10-14-2026, 05:39 AM
|
Leave a comment: