forked from mitenjain/nanopore
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
53 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from margin.mappers.abstractMapper import AbstractMapper | ||
from sonLib.bioio import system | ||
import os | ||
|
||
class Minimap2(AbstractMapper): | ||
def run(self, args="-ax map-ont"): | ||
localReferenceFastaFile = os.path.join(self.getLocalTempDir(), "ref.fa") #Because BWA builds these crufty index files, copy to a temporary directory | ||
system("cp %s %s" % (self.referenceFastaFile, localReferenceFastaFile)) | ||
system("minimap2 %s %s %s > %s" % (args, localReferenceFastaFile, self.readFastqFile, self.outputSamFile)) | ||
|
||
class Minimap2Chain(Minimap2): | ||
def run(self): | ||
Minimap2.run(self) | ||
self.chainSamFile() | ||
|
||
class Minimap2Realign(Minimap2): | ||
def run(self): | ||
Minimap2.run(self) | ||
self.realignSamFile() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters