Skip to content

Commit a91de21

Browse files
committed
Added more explanations
1 parent 063600e commit a91de21

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

docs/IRMA-code-explanation.md

+29-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,26 @@ After checking dependencies, creating paths with the variables, setting options
3737

3838
1. _Disk check_: Checks if there is enough space for the analysis. This step can be skipped with the parameter `ALLOW_DISK_CHECK` set to 0.
3939
2. _FastQconverter_: It is a custom Perl script. It handles quality and size filtering, trimming, and adapter masking.
40+
41+
- **Possible parameters**:
42+
- `-T, --read-quality <threshold>`: Specify the read quality threshold (geometric mean or median).
43+
- `-M, --use-median`: Interprets the threshold (-T) as the median, not the average.
44+
- `-Q, --fastQ-output`: Outputs in fastQ format instead of fasta.
45+
- `-L, --min-length <threshold>`: Minimum length of sequence data, default = 0.
46+
- `-C, --complement-add`: Take the reverse complement and add to the data.
47+
- `-O, --ordinal-headers`: Replace header with strict ordinals.
48+
- `-F, --file-id <STR>`: File ID for ordinals.
49+
- `-S, --save-quality <STR>`: Save quality file for back-mapping.
50+
- `-A, --save-stats <STR>`: Save quality vs. length statistics file for analysis.
51+
- `-K, --skip-remaining`: Do not output FASTA/FASTQ data (assumes -A).
52+
- `-H, --keep-header`: Keep header as usual.
53+
- `-c, --clip-adapter <STR>`: Clip adapter.
54+
- `-m, --mask-adapter <STR>`: Mask adapter.
55+
- `-Z, --fuzzy-adapter`: Allow one mismatch.
56+
- `-U, --uracil-to-thymine`: Convert uracil to thymine.
57+
- `-E, --enforce-clipped-length`: The minimum length threshold (-L) is enforced when adapter clipped (-c).
58+
- `-R, --read-side <INT>`: If FASTQ header is in SRA format and missing a read identifier, alter the header.
59+
4060
- It uses **options** from the configuration at this step such as:
4161
- `ADAPTER`: Transposase adapter sequence. To disable, set it as an empty string (ADAPTER=""). It trims 5′ on the forward adapter and 3′ on the reverse complement adapter. It can be applied to NextTera paired-end reads.
4262
- `FUZZY_ADAPTER`: If ADAPTER is set and FUZZY_ADAPTER is enabled, it also trims adapters with up to 1 mismatch.
@@ -230,6 +250,13 @@ As the default `SORT_PROG` is the same as the `MATCH_PROG`, it assumes that this
230250
231251
6. _parseSORTresults_: Perl script. Analyzes the results generated by SORT (Sequence Occupancy Read Trace) to determine the occurrence count of each target sequence and the number of reads contributing to each occurrence (score). Additionally, the script processes information about the number of reads used to generate each occurrence, which appears to be encoded in sequence identifiers (ID) in the SORT_results.tab file. Certain filters are applied to determine which sequences are considered valid for further analysis. For example, you can specify a minimum read count (-C) and a minimum read pattern count (-D). You can also choose to ignore annotations in sequence identifiers (-G). If a list of patterns is provided (-P), the script divides sequences into groups based on these patterns and selects the best sequence from each group, as well as any secondary sequence that meets the filter criteria. Patterns can also be provided to ban sequences (-B), meaning these sequences will be excluded from analysis.
232252
253+
- **Possible parameters**:
254+
- `-P, --pattern-list <STRING>`: Comma-separated list of patterns to group genes. Special case __ALL__ to select the top gene.
255+
- `-G, --ignore-annotations`: Ignore annotations in target identifiers.
256+
- `-C, --min-read-count <INTEGER>`: Minimum read count threshold for a target to be considered valid (default = 1).
257+
- `-D, --min-read-patterns <INTEGER>`: Minimum read patterns threshold for a target to be considered valid (default = 1).
258+
- `-B, --ban-list <STRING>`: Comma-separated list of patterns to ban specific genes`
259+
233260
- Uses **options** from the configuration in this step such as:
234261
- `SORT_GROUPS`: Determines sorting groups for primary and secondary data.
235262
- `BAN_GROUPS`: Patterns not allowed.
@@ -718,7 +745,8 @@ This is done because it will store the score from the .sam file into a variable,
718745
ATGGAATCCAACACCATGTCAAGCTTTCAGGTAGACTGTTTTCTTTGGCATATTCGCAAGCGATTTGCAGACAATGGATTGGGTGATGCCCCATTCCTCGATCGGCTACGCCGAGATCAAAAGTCCTTAAAAGGAAGAGGCAACACCCTTGGCCTCGACATCAAAACAGCCACTCTTGTTGGGAAACAAATTGTGGAATGGATTTTGAAAGAGAAATCCAGCGAGACACTTAGAATGGCAATTGCATCTATACCTACTTCGCGTTACATTTCTGACATGACCCTCGAGGAAATGTCACGAGACTGGTTCATGCTTATGCCTAGGCAAAAGATAATAGGCCCTCTTTGCGTGCGATTGGACCAGGCGGTCATGGATAAGAACATAGTACTGGAAGCAAACTTCAGTGTAATCTTCAACCGATTAGAGACCTTGATACTACTAAGGGCTTTCACTGAGGAGGGAACAATAGTTGGAGAAATTTCACCATTACCTTCTCTTCCAGGACATACTTATGAGGATGTCAAAAATGCAATTGGGGTCCTCATCGGAGGACTTGAGTGGAATGGTAACACGGTTCGAGTCTCTGAAAATATACAGAGATTCGCTTGGAGAAGCTGTGATGAGAATGGGAGACCTTCACTACCTCCAGAGCAGAAATGAGAAATGGCGGGAACAATTGGGACAGAAATTTGAGGAAATAAGATGGTTAATTGAAGAAATACGACACAGATTGAAAGCGACAGAAAATAGTTTCGAGCAAATAACATTTATGCAAGCCTTACAACTACTGCTTGAAGTAGAGCAAGAGATAAGAGCTTTCTCGTTTCAGCTTATTTAA
719746
```
720747
721-
Steps 17 to 23 are repeated up to `MAX_ITER_ASSEM`.
748+
> [!NOTE]
749+
> Steps 17 to 23 are repeated up to `MAX_ITER_ASSEM`.
722750
723751
##### 2.2.2. Call variants:
724752

0 commit comments

Comments
 (0)