mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Adds the command obimultiplex
This commit is contained in:
@ -52,7 +52,18 @@ func main() {
|
||||
|
||||
file, _ := os.Open("sample/wolf_diet_ngsfilter.txt")
|
||||
xxx, _ := obiformats.ReadNGSFilter(file)
|
||||
xxx.Compile(2)
|
||||
fmt.Printf("%v\n==================\n", xxx)
|
||||
|
||||
fmt.Println(xxx)
|
||||
for pp, m := range xxx {
|
||||
fmt.Printf("%v %v\n", pp, *m)
|
||||
}
|
||||
|
||||
seqfile, _ := obiformats.ReadFastSeqFromFile("xxxx.fastq")
|
||||
|
||||
for seqfile.Next() {
|
||||
seq := seqfile.Get()
|
||||
barcode, _ := xxx.ExtractBarcode(seq, true)
|
||||
fmt.Println(obiformats.FormatFasta(barcode, obiformats.FormatFastSeqOBIHeader))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user