-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAmpliconSeqQualityFilter
69 lines (44 loc) · 1.86 KB
/
AmpliconSeqQualityFilter
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
Last login: Fri Feb 28 08:44:34 on ttys002
abt6-derek-mba:~ dlundberg$ combined_fasta_name="HiSeq0168_all_trimmed.fasta"
abt6-derek-mba:~ dlundberg$ $combined_fasta_name
-bash: HiSeq0168_all_trimmed.fasta: command not found
abt6-derek-mba:~ dlundberg$
abt6-derek-mba:~ dlundberg$ burrit
dlundberg@burrito.eb.local's password:
Last login: Thu Feb 27 20:24:42 2020 from 10.1.5.120
dlundberg@burrito:~$ proj7
dlundberg@burrito:/ebio/abt6_projects7/bacterial_strain_analysis$ cd /ebio/abt6_projects7/bacterial_strain_analysis/code/HiSeqTrim_LOAD.sh
-bash: cd: /ebio/abt6_projects7/bacterial_strain_analysis/code/HiSeqTrim_LOAD.sh: Not a directory
dlundberg@burrito:/ebio/abt6_projects7/bacterial_strain_analysis$ vi /ebio/abt6_projects7/bacterial_strain_analysis/code/HiSeqTrim_LOAD.sh
dlundberg@burrito:/ebio/abt6_projects7/bacterial_strain_analysis$
dlundberg@burrito:/ebio/abt6_projects7/bacterial_strain_analysis$ vi /ebio/abt6_projects7/bacterial_strain_analysis/code/MiSeqQualityFilter.sh
#!/bin/sh
#
# Reserve 1 CPUs for this job
#$ -pe parallel 1
# Request 10G of RAM
#$ -l h_vmem=10G
#
# The name shown in the qstat output and in the output file(s). The
# default is to use the script name.
# -N $name
#
# The path used for the standard output stream of the job
# -o /ebio/abt6_projects7/bacterial_strain_analysis/data/processed_DATA
#
# Merge stdout and stderr. The job will create only one output file which
# contains both the real output and the error messages.
# -j y
#
# Use /bin/bash to execute this script
#$ -S /bin/bash
#
# Run job from current working directory
#$ -cwd
#
# Send email when the job begins, ends, aborts, or is suspended
##$ -m beas
fq=$1
usearch=/ebio/abt6_projects7/bacterial_strain_analysis/code/usearch10
echo $fq
$usearch -fastq_filter "$fq" -fastq_maxee 1.0 -relabel @ -fastaout "$fq"_filtered.fa -fastqout_discarded "$fq"_trash