mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Patch a bug in the help messages
Former-commit-id: 61ffea65db66215c072139540ec19c11c52efbbc
This commit is contained in:
@ -2,6 +2,40 @@
|
|||||||
|
|
||||||
## Ongoing changes
|
## Ongoing changes
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
- Adding of the function `contains` to the expression language for testing if a map contains a key.
|
||||||
|
It can be used from `obibrep` to select only sequences occurring in a given sample :
|
||||||
|
|
||||||
|
```{bash}
|
||||||
|
obigrep -p 'contains(annotations.merged_sample,"15a_F730814")' wolf_new_tag.fasta
|
||||||
|
```
|
||||||
|
- Adding of a new command `obipcrtag`. It tags raw Illumina reads with the identifier of their corresponding
|
||||||
|
sample. The tags added are the same as those added by `obimultiplex`. The produced forward and reverse files
|
||||||
|
can then be split into different files using the `obidistribute` command.
|
||||||
|
|
||||||
|
```{bash}
|
||||||
|
obitagpcr -F library_R1.fastq \
|
||||||
|
-R library_R2.fastq \
|
||||||
|
-t sample_ngsfilter.txt \
|
||||||
|
--out tagged_library.fastq \
|
||||||
|
--unidentified not_assigned.fastq
|
||||||
|
```
|
||||||
|
|
||||||
|
the command produced four files : `tagged_library_R1.fastq` and `tagged_library_R2.fastq` containing the assigned reads and `not_assigned_R1.fastq` and `not_assigned_R2.fastq` containing the unassignable reads.
|
||||||
|
|
||||||
|
the tagged library files can then be split using `obidistribute`:
|
||||||
|
|
||||||
|
```{bash}
|
||||||
|
mkdir pcr_reads
|
||||||
|
obidistribute --pattern "pcr_reads/sample_%s_R1.fastq" -c sample tagged_library_R1.fastq
|
||||||
|
obidistribute --pattern "pcr_reads/sample_%s_R2.fastq" -c sample tagged_library_R2.fastq
|
||||||
|
```
|
||||||
|
### Corrected bugs
|
||||||
|
|
||||||
|
- Correction of a bug in memory management and Slice recycling.
|
||||||
|
- Correction of the **--fragmented** option help and logging information
|
||||||
|
|
||||||
## March 31th, 2023. Release 4.0.2
|
## March 31th, 2023. Release 4.0.2
|
||||||
|
|
||||||
### Compiler change
|
### Compiler change
|
||||||
|
@ -33,7 +33,7 @@ func PCROptionSet(options *getoptions.GetOpt) {
|
|||||||
options.Description("Considers that sequences are [c]ircular."))
|
options.Description("Considers that sequences are [c]ircular."))
|
||||||
|
|
||||||
options.BoolVar(&_Fragmented, "fragmented", false,
|
options.BoolVar(&_Fragmented, "fragmented", false,
|
||||||
options.Description("Fragaments long sequences in overlaping fragments to speedup computations"))
|
options.Description("Fragments long sequences in overlaping fragments to speedup computations"))
|
||||||
|
|
||||||
options.StringVar(&_ForwardPrimer, "forward", "",
|
options.StringVar(&_ForwardPrimer, "forward", "",
|
||||||
options.Required("You must provide a forward primer"),
|
options.Required("You must provide a forward primer"),
|
||||||
|
@ -49,7 +49,7 @@ func CLIPCR(iterator obiiter.IBioSequence) (obiiter.IBioSequence, error) {
|
|||||||
obioptions.CLIParallelWorkers(),
|
obioptions.CLIParallelWorkers(),
|
||||||
)
|
)
|
||||||
log.Infof("Fragmenting sequence longer than %dbp into chuncks of %dbp",
|
log.Infof("Fragmenting sequence longer than %dbp into chuncks of %dbp",
|
||||||
CLIMaxLength()*100000000,
|
CLIMaxLength()*1000,
|
||||||
CLIMaxLength()*100,
|
CLIMaxLength()*100,
|
||||||
)
|
)
|
||||||
iterator = iterator.Pipe(frags)
|
iterator = iterator.Pipe(frags)
|
||||||
|
Reference in New Issue
Block a user