mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-11-09 17:24:41 +00:00
Adds the command obimultiplex
This commit is contained in:
1 parent
76d9309508
commit
8dbda68746
13 files changed
+688
-79
No files matched your search
+12
-1
@@ -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