-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalign.1
114 lines (113 loc) · 3.65 KB
/
align.1
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
.\" Manpage for align.sh
.TH man "08 Aug 2012" "1.0" "align.sh man page"
.SH NAME
align.sh \- run pipeline to align fastq files and create HiC map
.SH SYNOPSIS
.B align.sh
.B [\-g
.I genomeID
.B ]
.B [\-d
.I topDir
.B ]
.B [\-q
.I queue
.B ]
.B [\-s
.I site
.B ]
.B [\-k
.I key
.B ]
.B [\-a
.I about
.B ]
.B [\-R
.I end
.B ] [\-r] [\-h] [\-e]
.SH DESCRIPTION
.B align.sh
is the alignment script pipeline. It first sets the reference genome based on
.I genomeID
, which must be one of "mm9" (mouse), "hg19" (human, default), or "dMel"
(fly). It then looks in the directory
.I topDir
/fastq for fastq files.
.I topDir
defaults to the current directory, and the code assumes that there's
a "_R" in each filename delimiting the read (i.e. *R*.fastq).
It creates two new directories,
.I topDir
/splits and
.I topDir
/aligned, then splits the .fastq files into files in the splits/
directory containing 6,000,000 lines each (chosen because the
alignment will finish within an hour on a file of that size).
It then launches jobs to align the split files and merge them after
alignment. A final merge and final cleanup job are also created. If
all is successful, takes the final merged file, removes abnormal
chimeric reads, removes PCR duplicates, and creates the hic job and stats job.
The final products can be found in the
.I topDir
/aligned directory. There will be an intermediate format file
merged_nodups.txt which contains all alignable non-chimeric reads in
ASCII text. The columns in that file are
.RS
strand1 chr1 pos1 frag1 strand2 chr2 pos2 frag2 mapq1 cig1 seq1 mapq2
cig2 seq2 read1 read2
.RE
There will also be a inter.hic file containing the HiC map, a
inter.txt file containing the stats, and a inter_hists.m file for quality control. There will also be these same
files for MAPQ >= 30, with the prefix inter_30. Supplemental stats are
found in inter_supp.txt. Stats are produced for the dups file as well.
The splits directory may be deleted
after execution to save space. A symlink to the inter* files should
be created in the html directory so the viewer can see the files.
.SH OPTIONS
.IP "-g genomeID"
Use a different genome than hg19. Must be one of
"hg19", "dMel", or "mm9"
.I genomeID
as the genome to align to.
.IP "-d topDir"
Use
.I topDir
as the top level directory.
.I topDir
/fastq must contain the fastq files
.I topDir
/splits will be created to contain the temporary split files
.I topDir
/aligned will be created for the final alignment
.IP "-q queue"
Change the default LSF queue from hour to
.I queue
Must be one of
"hour", "priority", or "week"
.IP "-s site"
Use a different restriction site than DpnII. Must be one of
"HindIII", "MseI", "NcoI", "DpnII", "MspI","HinP1I", "StyD4I", "SaII", "NheI", "StyI", "XhoI", or "merge"
.IP "-k key"
Key for the menu that this new file will go beneath (used in
properties file, only applies for MiSeq runs)
.IP "-a about"
Description of experiment, enclosed in single quotes. Will print to
statistics file.
.IP "-R end"
Use the short read aligner for the specified end. Must be 1 or 2
.IP -r
Use the short read version of the aligner instead of the default long
read for both ends
.IP -e
Exit after alignment, do not combine sorted files
.IP -h
Print a short help message and exit
.SH BUGS
The script assumes that the fastq filenames contain a "_R" followed by
a 1 or 2, indicated read 1 or read 2. This is used to loop over only
the read 1 files and within that loop, also align read 2 and merge.
If this is not set correctly, the script will not work. The error will
often manifest itself through a "*" in the name because the wildcard was not
able to match any files with the read1str.
.SH AUTHOR
Neva Cherniavsky <[email protected]>