Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • mmartin
    replied
    Very strange ... I think your friend is on the right track, but I’m guessing the problem is slightly different: The bin/cutadapt binary is actually just a small wrapper that loads the actual package and starts it. It could be that it picks up the wrong (old) package in your case. To confirm, can you please post the output of the following commands:
    Code:
    head -n 1 $HOME/.local/bin/cutadapt
    python -c 'import sys; print sys.path'
    python -c 'import cutadapt; print cutadapt.__file__'
    Also, you could try running
    Code:
    pip install --user cutadapt==1.7.1
    Then pip should actually install the version you requested instead of telling you the software is already installed.

    Leave a comment:


  • sidsv
    replied
    I managed to install cutadapt 1.7.1 on my notebook locally (into /home/<username>/.local/bin) without a problem. All I described above I did on our server where cutadapt 1.2.1 is already installed 'globally' (in /usr/local/bin). My friend supposed that maybe when I launch setup.py in my cutadapt-1.7.1 directory it finds other cutadapt sources (which are 1.2.1) and installs them into my /home/<username>/.local/bin directory. So I constantly have 1.2.1 version. Maybe he is right, because when I try to install cutadapt locally using pip with a command

    Code:
     pip install --user cutadapt
    pip says that

    Code:
    Requirement already satisfied (use --upgrade to upgrade): cutadapt in /usr/local/lib/python2.7/dist-packages
    Cleaning up...

    Leave a comment:


  • sidsv
    replied
    Thank you for quick reply!

    I looked through the output and saw no error or warning messages.

    I removed cutadapt-1.7.1 directory and /home/<username>/.local/bin/cutadapt and reinstalled it with the same command.

    Complete output is:

    Code:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    creating build/lib.linux-x86_64-2.7/cutadapt
    copying cutadapt/seqio.py -> build/lib.linux-x86_64-2.7/cutadapt
    copying cutadapt/compat.py -> build/lib.linux-x86_64-2.7/cutadapt
    copying cutadapt/xopen.py -> build/lib.linux-x86_64-2.7/cutadapt
    copying cutadapt/qualtrim.py -> build/lib.linux-x86_64-2.7/cutadapt
    copying cutadapt/adapters.py -> build/lib.linux-x86_64-2.7/cutadapt
    copying cutadapt/align.py -> build/lib.linux-x86_64-2.7/cutadapt
    copying cutadapt/modifiers.py -> build/lib.linux-x86_64-2.7/cutadapt
    copying cutadapt/report.py -> build/lib.linux-x86_64-2.7/cutadapt
    copying cutadapt/colorspace.py -> build/lib.linux-x86_64-2.7/cutadapt
    copying cutadapt/__init__.py -> build/lib.linux-x86_64-2.7/cutadapt
    creating build/lib.linux-x86_64-2.7/cutadapt/scripts
    copying cutadapt/scripts/cutadapt.py -> build/lib.linux-x86_64-2.7/cutadapt/scripts
    copying cutadapt/scripts/__init__.py -> build/lib.linux-x86_64-2.7/cutadapt/scripts
    running build_ext
    building 'cutadapt._align' extension
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/cutadapt
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cutadapt/_align.c -o build/temp.linux-x86_64-2.7/cutadapt/_align.o
    gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/cutadapt/_align.o -o build/lib.linux-x86_64-2.7/cutadapt/_align.so
    building 'cutadapt._qualtrim' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cutadapt/_qualtrim.c -o build/temp.linux-x86_64-2.7/cutadapt/_qualtrim.o
    gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/cutadapt/_qualtrim.o -o build/lib.linux-x86_64-2.7/cutadapt/_qualtrim.so
    building 'cutadapt._seqio' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cutadapt/_seqio.c -o build/temp.linux-x86_64-2.7/cutadapt/_seqio.o
    gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/cutadapt/_seqio.o -o build/lib.linux-x86_64-2.7/cutadapt/_seqio.so
    running build_scripts
    creating build/scripts-2.7
    copying and adjusting bin/cutadapt -> build/scripts-2.7
    changing mode of build/scripts-2.7/cutadapt from 664 to 775
    running install_lib
    copying build/lib.linux-x86_64-2.7/cutadapt/_seqio.so -> /home/<username>/.local/lib/python2.7/site-packages/cutadapt
    copying build/lib.linux-x86_64-2.7/cutadapt/_qualtrim.so -> /home/<username>/.local/lib/python2.7/site-packages/cutadapt
    copying build/lib.linux-x86_64-2.7/cutadapt/_align.so -> /home/<username>/.local/lib/python2.7/site-packages/cutadapt
    running install_scripts
    copying build/scripts-2.7/cutadapt -> /home/<username>/.local/bin
    changing mode of /home/<username>/.local/bin/cutadapt to 775
    running install_egg_info
    Removing /home/<username>/.local/lib/python2.7/site-packages/cutadapt-1.7.1.egg-info
    Writing /home/<username>/.local/lib/python2.7/site-packages/cutadapt-1.7.1.egg-info
    Then I tried

    Code:
    /home/<username>/.local/bin/cutadapt --version
    and got "1.2.1".

    Leave a comment:


  • mmartin
    replied
    Which output did
    Code:
    python setup.py install --user
    produce? Were there any error messages?

    Leave a comment:


  • sidsv
    replied
    Hello!

    I have a problem using cutadapt 1.7.1. I downloaded it from



    untared, went inside the cutadapt-1.7.1 directory and ran

    python setup.py install --user

    to install it localy. But when a ran

    /home/<myusername>/.local/bin/cutadapt --version

    it showed 1.2.1 version. And there was no -u/--cut option that I need in order to cut last 15 bases. Maybe I do something wrong with it?

    Any help is appreciated!

    Leave a comment:


  • mmartin
    replied
    Originally posted by pbest View Post
    danke für den IUPAC-Support.
    Das ist ziemlich nützlich für RRBS-Daten um die aufgeüllten CGs los zu werden.
    Sure! IUPAC support has been on my list for a while, was good to have this finally implemented.

    Leave a comment:


  • pbest
    replied
    Hi Marcel,

    danke für den IUPAC-Support.
    Das ist ziemlich nützlich für RRBS-Daten um die aufgeüllten CGs los zu werden.

    MFG Phil

    Leave a comment:


  • mmartin
    replied
    Cutadapt 1.7 released

    Hi there, cutadapt 1.7 is now available. Here are the most important new features:
    • Support for IUPAC characters
    • Demultiplexing of FASTQ files
    • Added an "anchored 3' adapter" type

    And of course there are some bugfixes and closed issues. See also the full changelog. If you want know about future cutadapt releases, you can also follow me on Twitter.

    The next release will add proper paired-end trimming support. That is, you can then trim both reads at the same time without running cutadapt twice. Check out the 'paired' branch on Github if you are interested.

    Update: If you get the message "OSError: [Errno 2] No such file or directory: 'cutadapt/_align.pyx'", then please update to cutadapt 1.7.1, which fixes the error.
    Last edited by mmartin; 11-26-2014, 01:50 AM. Reason: point to 1.7.1

    Leave a comment:


  • mmartin
    replied
    Hi Francy,

    I think Phil gave the correct answer. It seems the adapter sequence is compatible with Illumina’s adapter (it probably has to be for it to work), and so you need to trim the same adapter sequence.

    If you want to shorten the command a bit, it is probably enough to use only the first 13 or so bases of the full adapter sequence: -a AGATCGGAAGAGC. That makes cutadapt also slightly faster.

    Marcel

    Leave a comment:


  • pbest
    replied
    Originally posted by Francy87 View Post
    The kit protocol report some adaptor sequences and the indexed primers, but I'm not sure about which of them I should look for
    Hi Francy,

    for single end reads you would normally only expect contamination with Adapter-Sequences at the 3'-ends of your reads. I haven't read the protocol you attached in detail - but to my knowledge this is the information you want:

    The sequence of each ScriptSeq Index PCR Primer is:
    5′ CAAGCAGAAGACGGCATACGAGATNNNNNNGTGACTGGAGTTCAGACGTGTGCTCTTCCGATCT 3′
    Use the reverse-complement of the above sequence with cutadapts -a option. You can even keep the N's in the sequence - cutadapt knows how to handle them.
    So try cutadapt -a AGATCGGAAGAGCACACGTCTGAACTCCAGTCACNNNNNNATCTCGTATGCCGTCTTCTGCTTG

    and then have a look at the report - if there is a reasonable number of reads trimmed it should be correct.

    Cheers Phil

    Leave a comment:


  • Francy87
    replied
    epicentre scriptseq v2 adaptors trimming

    Hi all!
    I want to use cuadapt to trim adaptors from my single end reads. The libraries were generated by using the scriptseq v2 kit by epicentre. The kit protocol report some adaptor sequences and the indexed primers, but I'm not sure about which of them I should look for (attached the kit protocol - adaptors sequences at page 11 - and the indexed primers used (1 to 12))

    Anyone can help me?

    Thanks a lot
    Francesca
    Attached Files
    Last edited by Francy87; 11-02-2014, 08:54 AM.

    Leave a comment:


  • mmartin
    replied
    Hi, cutadapt 1.6 is now available. Here's a copy of the changelog.

    There are no new features, but some bugs have been fixed and the documentation is now available at https://cutadapt.readthedocs.org/ and has been updated quite a bit.
    • Fix issue 77: Ensure --format=... can be used even with paired-end input.
    • Fix issue 79: Sometimes output files would be incomplete because they were not closed correctly.
    • Extensive work on the documentation. It's now available at https://cutadapt.readthedocs.org/.
    • The alignment algorithm is a tiny bit faster.
    • For 3' adapters, statistics about the bases preceding the trimmed adapter are collected and printed. If one of the bases is overrepresented, a warning is shown since this points to an incomplete adapter sequence. This happens, for example, when a TruSeq? adapter is used but the A overhang is not taken into account when running cutadapt.
    • Duo to code cleanup, there is a change in behavior: If you use --discard-trimmed or --discard-untrimmed in combination with --too-short-output or --too-long-output, then cutadapt now writes also the discarded reads to the output files given by the --too-short or --too-long options. If anyone complains, I will consider reverting this.
    • Galaxy support files are now in a separate repository at https://bitbucket.org/lance_parsons/...galaxy_wrapper . Thanks to Lance Parsons for his work on this.

    Leave a comment:


  • captainentropy
    replied
    I see. Yes, that makes sense now. My match is at the beginning of the read so there's nothing to the left of it (and thus empty).

    Thanks!

    Leave a comment:


  • mmartin
    replied
    Originally posted by captainentropy View Post
    According to it there's supposed to be 8 columns but I only get 7.
    There should still be eight fields, but perhaps one of the columns is empty? In that case, you'd have two consecutive tabs within a single line and it'd appear as if you only have seven fields.

    Column 5 (Sequence of the read before the adapter match) seems to have been removed, yes?
    The format hasn't changed, but I realize that the wording in the README is confusing: The "Sequence of the read before the adapter match" is actually the "sequence of the read to the left of the adapter match".

    I've tried to clarify all this in the README now. I've also fixed a mistake in the description of how to get the original read sequence: You need to concatenate columns 5-7, not columns 5-6. Hope that helps!

    Leave a comment:


  • captainentropy
    replied
    Hi mmartin,

    I'm using the latest version (1.5) and I noticed the format of the info file doesn't seem to match exactly with the documentation on github (https://github.com/marcelm/cutadapt/...ster/README.md). According to it there's supposed to be 8 columns but I only get 7. Column 5 (Sequence of the read before the adapter match) seems to have been removed, yes?

    It's not a big deal I don't think as I can recreate the full read by concatenating columns 5 and 6, like the page says ("The concatenation of the fields 5-6 yields the full read sequence."). Or am I missing something?

    thanks!

    Leave a comment:

Latest Articles

Collapse

  • SEQadmin2
    Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
    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
    ...
    10-14-2026, 09:55 AM
  • SEQadmin2
    New Genomics Technologies Take Aim at Long-Standing Limits
    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
    ...
    09-28-2026, 10:25 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 10-22-2026, 11:13 AM
0 responses
36 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-22-2026, 10:48 AM
0 responses
28 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-15-2026, 10:52 AM
0 responses
41 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-14-2026, 05:39 AM
0 responses
45 views
0 reactions
Last Post SEQadmin2  
Working...