Skip to content

Commit

Permalink
human mitochondrial genome
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjo255 committed Oct 10, 2024
1 parent a5af269 commit a7fc654
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
Binary file added images/._MITNANEX.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified index.html
100644 → 100755
Empty file.
46 changes: 46 additions & 0 deletions mitnanex_human.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/bin/bash

#DEFAULT
wd="."
output_folder="mitnanex_results"
threads=4
min_qual=0


## Help message
mitnanex_help() {
echo "
MITNANEX - MITochondrial NANopore reads EXtractor
Author:
Juan Picon Cossio
Version: 0.1
Usage: mitnanex.sh [options] FASTQ
Options:
-i Input file. [required].
-t Threads. [4].
-m Min-len. Filter reads by minimun length. Read seqkit seq documentation. [-1].
-M Max-len. Filter reads by maximun length. Read seqkit seq documentation. [-1].
-w Working directory. Path to create the folder which will contain all mitnanex information. [$wd].
-s Mapping identity. Minimun identity between two reads to be store in the same cluster.[0.6].
-q Min mapping quality (>=). This is for samtools. [0].
-f Flye mode. [--nano-hq]
-k Percentage of reads to keep during filter with filtlong. [80].
* Help.
"
exit 1
}


map_reads(){
# Input
## $1=reference
## $2=query
## $3=output

minimap2 -ax map-ont --split-prefix "temp_prefix" --secondary=no $1 $2 | samtools view -b --min-MQ $min_qual -F4 -T $1 -o $3

}

0 comments on commit a7fc654

Please sign in to comment.