Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LindsayR
    Junior Member
    • May 2015
    • 2

    #61
    Thanks for helping Felix. A simple typo on my end unfortunately. Problem solved!

    Comment

    • create.share
      Member
      • May 2014
      • 20

      #62
      For those with weaker heart (those that cannot use complex scripts in Linux and need a graphic interface) here is another (free) program for trimming qualities:

      An efficient SFF/FastQ viewer and editor (GUI)






      The gray/green curves in the second graphic shows the average quality before and after trimming the low quality ends.


      Only works on Fasta, FastQ, SFF for the moment.
      Sorry.
      Last edited by create.share; 05-30-2015, 12:19 AM.

      Comment

      • padmoo
        Member
        • Jun 2015
        • 16

        #63
        Hi everyone,

        not sure if this is the right thread but I'll give it a go:

        I'm trying to get rid of adapters in my sequences. There aren't many with adapters but I'd like to save what I can.

        When I run my command I get the following error:

        ==================================================================
        Your job looked like:

        ------------------------------------------------------------
        # LSBATCH: User input
        /gpfs/scratch/cbh12wsu/trim/trim_galore -phred33 --illumina --paired -phred33 --path_to_cutadapt /gpfs/scratch/cbh12wsu/trim/cutadapt.py -o adaptrim.fastq -length 50 1_L.fastq 2_R.fastq
        ------------------------------------------------------------

        Exited with exit code 2.

        The output (if any) follows:

        Path to Cutadapt set as: '/gpfs/scratch/cbh12wsu/trim/cutadapt.py' (user defined)
        File "/gpfs/scratch/cbh12wsu/trim/cutadapt.py", line 99
        print(rest, match.read.name, file=self.file)
        ^
        SyntaxError: invalid syntax
        Cutadapt seems to be working fine (tested command '/gpfs/scratch/cbh12wsu/trim/cutadapt.py --version')
        File "/gpfs/scratch/cbh12wsu/trim/cutadapt.py", line 99
        print(rest, match.read.name, file=self.file)
        ^
        SyntaxError: invalid syntax
        Failed to write to file '1_L.fastq_trimming_report.txt': No such file or directory
        ==================================================================

        Does indicate a problem with the cutadapt.py?

        Thanks!

        Comment

        • fkrueger
          Senior Member
          • Sep 2009
          • 627

          #64
          Hmm, when you just type "/gpfs/scratch/cbh12wsu/trim/cutadapt.py" on the command line do you see something like:

          Code:
          cutadapt version 1.8.1
          Copyright (C) 2010-2015 Marcel Martin <[email protected]>
          
          cutadapt removes adapter sequences from high-throughput sequencing reads.
          
          Usage:
              cutadapt -a ADAPTER [options] [-o output.fastq] input.fastq
          ?

          Comment

          • padmoo
            Member
            • Jun 2015
            • 16

            #65
            Hi Felix,

            thanks for replying so quick!

            I get the following error when I try your command:
            File "/gpfs/scratch/cbh12wsu/trim/cutadapt.py", line 99
            print(rest, match.read.name, file=self.file)
            ^
            SyntaxError: invalid syntax

            I think I should mention that I made cutadapt.py an executable. And copied it from it's original folder into the trim folder.

            Comment

            • fkrueger
              Senior Member
              • Sep 2009
              • 627

              #66
              Cutadapt probably needs its internal structure to be intact, can't you just do a normal installation and then point to the cutadapt executable (without renaming it to .py?)

              Comment

              • padmoo
                Member
                • Jun 2015
                • 16

                #67
                I put it back where it belongs and tried again. Same error as before.

                With normal installation you mean the pip command? I tried that before but I'm not allowed to do that on the cluster. I can load a cutadapt module but I was hoping making it an executable would solve the problem.

                Comment

                • fkrueger
                  Senior Member
                  • Sep 2009
                  • 627

                  #68
                  Hmm, maybe you need to contact your sys-admins then, you obviously need to get Cutadapt to be working before you can start using it. You should even be able to install it in your home directory and then point there?

                  Comment

                  • dpryan
                    Devon Ryan
                    • Jul 2011
                    • 3478

                    #69
                    Just install it as a user (pip install --user cutadapt) or use virtualenv.

                    Comment

                    • padmoo
                      Member
                      • Jun 2015
                      • 16

                      #70
                      I've installed it and when I run felix's command I get:
                      cutadapt version 1.8.1
                      ...

                      But I still get this error:
                      Path to Cutadapt set as: '/gpfs/scratch/cbh12wsu/trim/cutadapt/cutadapt/scripts/cutadapt' (user defined)
                      1.8.1
                      Cutadapt seems to be working fine (tested command '/gpfs/scratch/cbh12wsu/trim/cutadapt/cutadapt/scripts/cutadapt --version')
                      Failed to write to file '1_L.fastq_trimming_report.txt': No such file or directory

                      Used this command:
                      bsub -N -q short -o cut3.txt "/gpfs/scratch/cbh12wsu/trim/trim_galore -phred33 --illumina --paired -phred33 --path_to_cutadapt /gpfs/scratch/cbh12wsu/trim/cutadapt/cutadapt/scripts/cutadapt -o adaptrim.fastq -length 50 1_L.fastq 2_R.fastq"

                      More ideas?

                      Comment

                      • fkrueger
                        Senior Member
                        • Sep 2009
                        • 627

                        #71
                        Ok, Cutadapt seems to be working now. Do you have write permission in the folder where you keep your FastQ files?

                        Comment

                        • padmoo
                          Member
                          • Jun 2015
                          • 16

                          #72
                          these are the folder permissions: drwxr-xr-x
                          I also just did a fastqc run and that adds the files to the folder, so it should be fine.

                          could it be a problem that the to write file is called .fastqxx.txt?

                          Comment

                          • fkrueger
                            Senior Member
                            • Sep 2009
                            • 627

                            #73
                            no that shouldn't matter... Could it be that your queuing system does not take you to the same directory (option like -cwd)? What happens if you just run the command without using the queue?

                            By the way you can shorten the command like this:

                            Code:
                            /gpfs/scratch/cbh12wsu/trim/trim_galore --paired --path_to_cutadapt /gpfs/scratch/cbh12wsu/trim/cutadapt/cutadapt/scripts/cutadapt [COLOR="Red"]-o adaptrim.fastq[/COLOR] -length 50 1_L.fastq 2_R.fastq
                            By the way -o is meant to be an output directory, not a file name. This might be the reason why it can't create the output files in the directory called adaptrim.fastq

                            Comment

                            • padmoo
                              Member
                              • Jun 2015
                              • 16

                              #74
                              It is still running!!!!! What a stupid mistake! Thanks for finding it and shortening my command!

                              Comment

                              • fkrueger
                                Senior Member
                                • Sep 2009
                                • 627

                                #75
                                Great, enjoy!

                                Comment

                                Latest Articles

                                Collapse

                                • SEQadmin2
                                  16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                                  by SEQadmin2




                                  NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
                                  Today, 06:46 AM
                                • 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

                                ad_right_rmr

                                Collapse

                                News

                                Collapse

                                Topics Statistics Last Post
                                Started by SEQadmin2, 10-28-2026, 09:57 AM
                                0 responses
                                22 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 10-28-2026, 09:51 AM
                                0 responses
                                14 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 10-22-2026, 11:13 AM
                                0 responses
                                68 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 10-22-2026, 10:48 AM
                                0 responses
                                48 views
                                0 reactions
                                Last Post SEQadmin2  
                                Working...