Entering edit mode
4.6 years ago
Pegasus
▴
120
Hi all,
I built an environment in Anaconda..and installed a Trimmomatic package... how to launch the Trimmomatic tool using Mac terminal.. and apply the tool on fastaq file located in my local server!
There is no graphical interface to launch, if that is what you are expecting.
Actually I meant to start the tool..what command or code should I write in the terminal, after activating the environment
You can simply go into the
bin
folder of your anaconda and check how exactly the tool is named.Have you activated the environment? Did you try to run it following the manual?
Thanks for your answer, yes I activated the environment using the code " conda activate py2" and confirmed that the Trimmomatic is presented in Py2 environment by using the code "conda list", but whats next ...how to run Trimmomatic!
According to the manual, for single end mode; java -classpath <path to="" trimmomatic="" jar=""> org.usadellab.trimmomatic.TrimmomaticSE [- threads <threads>] [-phred33 | -phred64] [-trimlog <logfile>] <input> <output> <step 1=""> ...
Should I flow the same process even I used installation code to install Trmmomatic package, not downloaded a jar file!!
After installation with conda you should just run
trimmomatic
rather thanjava -jar etc
ok, but what is the command (code to run) ..I followed these steps;
In terminal;
after activation;
I tried;
but no code could run the tool!!!
What does that mean? Which error message did you get? You will have to be more specific if you expect help. What is the output of
conda list
?Hi, sorry for being unspecific ...Trimmomatic is shown in the conda list output, which confirmed that I have Trimmomatic in my environment.
run Trimmomatic showed me this output;
So I think I need to go through the trimmomatic guide to more understand these terms.
Thanks
What you are looking at is
in-line
help thattrimmomatic
provides. It is giving you a clue as to what you minimally need in your command line. Generally things in<>
are optional. Here is an example of what a real command looks like:\
in command line is used to wrap the command on multiple lines. That is not necessary when you type the command out. This example is for paired-end data. If you have single-end reads then things would change some.thanks for your explanation
Hi genomax,
I activated my python-based environment in mac terminal. And using the Trimmomatic code:
trimmomatic PE -threads 4 SRR_292770_1.fastq SRR_292770_2.fastq \ SRR_292770_1.trimmed.fastq SRR_292770_1un.trimmed.fastq \ SRR_292770_2.trimmed.fastq SRR_292770_2un.trimmed.fastq \ ILLUMINACLIP:adapters.fa SLIDINGWINDOW:4:20
showed me this error; ^ SyntaxError: invalid syntax
I wonder where is the problem!!
Make sure you are using proper hypens and underscores. macOS has something called
smartquotes and dashes
. Turn them off underSystem pref -> Keyboard -> text
and then re-type the command and see if that helps. Your command looks good otherwise.Yes, that's usually the best idea to start there before diving in trying out a new tool.