forked from atulkakrana/preprocess.seq
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
232 lines (147 loc) · 10.4 KB
/
README.txt
File metadata and controls
232 lines (147 loc) · 10.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
General Notes: FASTQ preprocessing module.
Updated: version-1.0 09/16/2015
======== Description ========
we provided users with a standalone and Python-based FASTQ processing script to produce the “tag count” formatted
files required as input to our webtool.The processing script performs trimming and chopping, taking the raw FASTQ
file(s) (single or paired end) and a set of user-defined parameters that include adapter sequences that may vary
from default Illumina adapters. The parameter file also determines whether the FASTQ processing yields a FASTQC report,
and whether it generates the graphs after trimming and chop-ping (for which the genome sequence must be provided).
#############################################################
# FILES INCLUDED IN DOWNLOADED FOLDER #
#############################################################
1. prepro.py [Python3 based processing script.]
2. prepro.set [configuration file to run prepro.py. Default settings are set to run single end FASTQ file]
3. TruSeq-PE.fa [Paired end adapters in FASTA]
4. TruSeq-SE.fa [Single end adapters in FASTA]
5. cleanFasta.py [Not used - Cleans the FASTA file header, trunchates the header till first whitespace and pipe and removes whitelines. USAGE: python3 cleanFasta.py FASTAFILE]
6. README.txt
---------------------------------
##############################################################
# RUN SCRIPT #
##############################################################
1. READ INSTALL mentioned below to install 3rd party tools.
2. Put all FASTQ files inside downloaded PREPROCESS folder.
3. Put adapter.fa inside the same folder as above. [Please see adapter settings in "prepro.set", if you use your own adapter sequences.]
4. Put genome inside the same folder as above. [Please see genoFile settings in "prepro.set"]
5. Configure "prepro.set" with your settings. [Default settings are good to generate TAG COUNT files from single end FASTQ files.]
6. Finally, go the PREPROCESS folder and run the script using command: USAGE "python3 prepro.py"
Output:
1. *trimmed_fastqc.html [FASTQC report. by default ]
2. *chopped.trimmed.processed.txt [TAG COUNT file after trimming and chopping]
3. *trimmed.fastq [Trimmed file]
4. *chopped.trimmed.fastq [Chopped and Trimmed file]
5. Compressed folder .ZIP folder: contains aforementioned FASTQC results
5. *.PNG [Generate images if settings are configured in "prepro.set" .]
---------------------------------
##################################################################
REQUIRED INSTALL #
##################################################################
1. INSTALL Python3 [Ignore this step you have Python v3]
Follow instructions from https://www.python.org/downloads/
2. INSTALL FastQC
Step-1: Fetch Binaries ()
wget http://www.bioinformatics.babraham.ac.uk/projects/fastqc/fastqc_v0.11.3.zip
Step-2: Unzip the binaries
unzip fastqc_v*
Step-3: Export the PATH
touch ~/.bash_profile [If not bash_profile file set ever before]
echo 'export PATH=$PATH:~/FastQC/' >> ~/.bash_profile
Step-4: Use new PATH
source ~/.bash_profile
or
Log out and login again
3. INSTALL Trimmomatic
Step-1: Fetch Binaries ()
wget http://www.usadellab.org/cms/uploads/supplementary/Trimmomatic/Trimmomatic-0.33.zip
Step-2: Unzip the binaries
unzip Trimmomatic*
mv Trimmomatic-0.33 Trimmomatic
Step-3: Copy PATH to prepro.set file
pwd [copy the PATH and set variable '@Trimmomatic_PATH' in the prepro.set to this PATH.]
4. INSTALL Tally
Step-1: Fetch Binaries
wget http://www.ebi.ac.uk/~stijn/reaper/src/reaper-14-020.tgz
Step-2: Unzip the binaries
tar -xvzf reaper*.tgz
Step-3: Export the PATH
cd reaper-14-020/src
make
echo 'export PATH=$PATH:~/reaper-14-020/src/' >> ~/.bash_profile
Step-4: Use new PATH
source ~/.bash_profile
or
Log out and login again
---------------------------------
#################################################################
# OPTIONAL INSTALL #
#################################################################
1. Optional: SRAtool kit on CentOS to download Paired End data.
Step-1: Fetch Binaries [You can download windows as well as different LINUX versions their website.
wget http://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/2.5.2/sratoolkit.2.5.2-centos_linux64.tar.gz
Step-2: Unzip the binaries
tar -zxvf sratoolkit.2.5.2-centos_linux64.tar.gz
Step-3: Export the PATH
echo 'export PATH=$PATH:~/sratoolkit.2.5.2-centos_linux64/bin' >> ~/.bash_profile
Step-4: Use new PATH
source ~/.bash_profile
or
Log out and login again
Step-5: Download paired end data using accession.
e.g., fastq-dump -A SRR501912 --split-files [These will download the fastq file and split them as _1.fastq and _2.fastq.]
e.g., fastq-dump -A SRR501913 --split-files
---------------------------------
#####################################################################
# EXAMPLE OF SETTINGS FILE "prepro.set" #
#####################################################################
1. RUN WITH PAIRED END FASTQ file to generate TAG COUNT file.
@libs = SRR501912,SRR501913 <FASTQ file names without extensions separated by ','. For example, HEN1-1,HEN1-8. For paired-end data: e.g., SRR501912_1.fastq and SRR501912_2.fastq. Use core_name (SRR501912) without suffix _1.fastq or_2.fastq>
<Required Steps, value in string>
@genoFile= <Default: leave blank (No file required), 'genome.fa' is provided to map final chopped files and generate graphs>
<Optional Steps, value in boolean>
@QCheckStep = 1 <Default: 0, Performs preliminary QC of RAW FASTQ file and generate charts>
@preProGraphsStep = 0 <Default: 0, 1 Generates before-chopping graphs and used only if genoFile is provided by user.>
<Required Steps, value in boolean>
@seqType = 1 < 0: Single End; 1:Paired end (requires splitted reads - see fastq dump --split-reads for lib/or custom script)>
@trimLibsStep = 1 <Trim FASTQ file>
@chopLibsStep = 1 <Chop file>
@adapterSelection = 0 < Default: 0 uses Trimmomatic files, 1 user provided FASTA file "adapter.fa">
@fastQ2CountStep = 1 <Converts chopped to tag count>
@mapperStep = 0 < Default: 0, 1 Maps final chopped files and generates graphs and used only if genoFile is provided by user. >
@summaryFileStep = 1 <Prepares a summary file for the library>
@cleanupStep = 0 <Final cleanup>
@maxLen = 21 <Max length of the tag allowed. Based on maxLen mismatches are allowed for mapping >
@minLen = 20 <Min length of tag allowed>
@unpairDel = 1 <[Only for paired end analysis] 0: Retain unpaired read files after trimming 1: Delete these files>
<Required PATH for TOOLs>
@adapterFile= < Default: leave blank (No file required), adapter.fa is provided Only used if the adapterSelection is set to 1>
@Trimmomatic_PATH= /home/Trimmomatic/trimmomatic-0.33.jar < provide a path to the .jar file. For example, /home/Trimmomatic/trimmomatic-0.33.jar >
---------------------------------
2. RUN WITH SINGLE END FASTQ file to generate TAG COUNT file + graphs [We are not using default adapters, so we input adapter.fa].
@libs = HEN1-1,HEN1-8 <FASTQ file names without extensions seperated by ','. For example, HEN1-1,HEN1-8. For paired-end data: e.g., SRR501912_1.fastq and SRR501912_2.fastq. Use core_name (SRR501912) without suffix _1.fastq or_2.fastq>
<Required Steps, value in string>
@genoFile= ath_TAIR10_genome.fa <Default: leave blank (No file required), 'genome.fa' is provided to map final chopped files and generate graphs>
<Optional Steps, value in boolean>
@QCheckStep = 1 <Default: 0, Performs preliminary QC of RAW FASTQ file and generate charts>
@preProGraphsStep = 1 <Default: 0, 1 Generates before-chopping graphs and used only if genoFile is provided by user.>
<Required Steps, value in boolean>
@seqType = 0 < 0: Single End; 1:Paired end (requires splitted reads - see fastq dump --split-reads for lib/or custom script)>
@trimLibsStep = 1 <Trim FASTQ file>
@chopLibsStep = 1 <Chop file>
@adapterSelection = 1 < Default: 0 uses Trimmomatic files, 1 user provided FASTA file "adapter.fa">
@fastQ2CountStep = 1 <Converts chopped to tag count>
@mapperStep = 1 < Default: 0, 1 Maps final chopped files and generates graphs and used only if genoFile is provided by user. >
@summaryFileStep = 1 <Prepares a summary file for the library>
@cleanupStep = 0 <Final cleanup>
@maxLen = 21 <Max length of the tag allowed. Based on maxLen mismatches are allowed for mapping >
@minLen = 20 <Min length of tag allowed>
@unpairDel = 1 <[Only for paired end analysis] 0: Retain unpaired read files after trimming 1: Delete these files>
<Required PATH for TOOLs>
@adapterFile= adapter.fa < Default: leave blank (No file required), adapter.fa is provided Only used if the adapterSelection is set to 1>
@Trimmomatic_PATH= /home/Trimmomatic/trimmomatic-0.33.jar < provide a path to the .jar file. For ex
---------------------------------
======= Contact ===========
Atul Kakrana
kakrana@udel.edu
Parth Patel
pupatel@dbi.udel.edu
===== END of README =======