public class AssemblyHaplotypesPlugin
extends net.maizegenetics.plugindef.AbstractPlugin
| Constructor and Description |
|---|
AssemblyHaplotypesPlugin() |
AssemblyHaplotypesPlugin(Frame parentFrame) |
AssemblyHaplotypesPlugin(Frame parentFrame,
boolean isInteractive) |
| Modifier and Type | Method and Description |
|---|---|
String |
assembly()
Assembly fasta file for a single chromosome to align
against the reference
|
AssemblyHaplotypesPlugin |
assembly(String value)
Set Assembly Fasta File.
|
String |
assemblyName()
Name of Assembly Taxon, to be stored as taxon name
in the DB
|
AssemblyHaplotypesPlugin |
assemblyName(String value)
Set Assembly Name.
|
String |
chrom()
Name of chromosome as it appears both for the reference
in the db reference_ranges table, and in the fasta
file idLine for the assembly
|
AssemblyHaplotypesPlugin |
chrom(String value)
Set Chromosome Name.
|
Integer |
clusterSize()
Cluster size to use with mummer4 nucmer script.
|
AssemblyHaplotypesPlugin |
clusterSize(Integer value)
Set Mummer4 Nucmer Cluster Size .
|
static Map<Integer,AnchorDataPHG> |
createAndLoadAssemblyData(Map<Integer,ReferenceRange> idByRangeMap,
List<htsjdk.variant.variantcontext.VariantContext> fullVC,
net.maizegenetics.dna.map.GenomeSequence refSequence,
Connection dbConn,
String assemblyName,
String outputDir,
String chrom,
int clusterSize)
Create the assembly genotype/haplotype data and load to the PHG database
|
String |
dbConfigFile()
File containing lines with data for host=, user=, password=
and DB=, DBtype= used for db connection
|
AssemblyHaplotypesPlugin |
dbConfigFile(String value)
Set DB Config File.
|
static com.google.common.collect.RangeSet<net.maizegenetics.dna.map.Position> |
getAnchorRangeSet(Map<Integer,ReferenceRange> anchorEntries)
Create a RangeSet from a map of ranges
|
String |
getButtonName() |
ImageIcon |
getIcon() |
String |
getToolTipText() |
String |
gVCFOutputDir()
Directory for gvcf files to be output for later use
|
AssemblyHaplotypesPlugin |
gVCFOutputDir(String value)
Set GVCF Output Dir.
|
static void |
loadAssemblyDataToDB(int gamete_grp_id,
String method,
Connection dbConn,
Map<Integer,AnchorDataPHG> anchorSequences)
Load the assembly haplotype data to the database
|
static int |
loadInitialAssemblyData(String assemblyName,
String method,
Connection dbConn)
load initial genotype and method data to the database
|
String |
mummer4Path()
Path to mummer4 binaries
|
AssemblyHaplotypesPlugin |
mummer4Path(String value)
Set Mummer4 binary path
|
String |
outputDir()
Output directory including trailing / for writing files
|
AssemblyHaplotypesPlugin |
outputDir(String value)
Set Output Directory.
|
net.maizegenetics.plugindef.DataSet |
processData(net.maizegenetics.plugindef.DataSet input) |
String |
ref()
Input reference fasta file for single chromosome
|
AssemblyHaplotypesPlugin |
ref(String value)
Set Reference Fasta File.
|
static Map<Integer,ReferenceRange> |
referenceRangeForChromMap(Connection database,
String chrom)
Find all reference ranges for a particular chromosome
|
addListener, cancel, convert, dataSetReturned, getCitation, getInputs, getMenu, getPanel, getParameter, getParameter, getParentFrame, getUsage, getUsageHTML, isInteractive, performFunction, pluginDescription, pluginUserManualURL, progress, progress, receiveInput, reverseTrace, run, setConfigParameters, setParameter, setParameter, setParameter, setParameters, setParametersToDefault, setThreaded, trace, wasCancelledpublic AssemblyHaplotypesPlugin()
public AssemblyHaplotypesPlugin(Frame parentFrame)
public AssemblyHaplotypesPlugin(Frame parentFrame, boolean isInteractive)
public net.maizegenetics.plugindef.DataSet processData(net.maizegenetics.plugindef.DataSet input)
processData in interface net.maizegenetics.plugindef.PluginprocessData in class net.maizegenetics.plugindef.AbstractPluginpublic static Map<Integer,ReferenceRange> referenceRangeForChromMap(Connection database, String chrom)
database - chrom - public static com.google.common.collect.RangeSet<net.maizegenetics.dna.map.Position> getAnchorRangeSet(Map<Integer,ReferenceRange> anchorEntries)
anchorEntries - public static Map<Integer,AnchorDataPHG> createAndLoadAssemblyData(Map<Integer,ReferenceRange> idByRangeMap, List<htsjdk.variant.variantcontext.VariantContext> fullVC, net.maizegenetics.dna.map.GenomeSequence refSequence, Connection dbConn, String assemblyName, String outputDir, String chrom, int clusterSize)
idByRangeMap - fullVC - refSequence - dbConn - assemblyName - outputDir - chrom - public static int loadInitialAssemblyData(String assemblyName, String method, Connection dbConn)
assemblyName - method - dbConn - public static void loadAssemblyDataToDB(int gamete_grp_id,
String method,
Connection dbConn,
Map<Integer,AnchorDataPHG> anchorSequences)
gamete_grp_id - method - dbConn - anchorSequences - public ImageIcon getIcon()
public String getButtonName()
public String getToolTipText()
public String ref()
public AssemblyHaplotypesPlugin ref(String value)
value - Reference Fasta Filepublic String assembly()
public AssemblyHaplotypesPlugin assembly(String value)
value - Assembly Fasta Filepublic String outputDir()
public AssemblyHaplotypesPlugin outputDir(String value)
value - Output Directorypublic String dbConfigFile()
public AssemblyHaplotypesPlugin dbConfigFile(String value)
value - DB Config Filepublic String assemblyName()
public AssemblyHaplotypesPlugin assemblyName(String value)
value - Assembly Namepublic String chrom()
public AssemblyHaplotypesPlugin chrom(String value)
value - Chromosome Namepublic String mummer4Path()
public AssemblyHaplotypesPlugin mummer4Path(String value)
value - Mummer4 binary pathpublic Integer clusterSize()
public AssemblyHaplotypesPlugin clusterSize(Integer value)
value - Mummer4 Nucmer Cluster Sizepublic String gVCFOutputDir()
public AssemblyHaplotypesPlugin gVCFOutputDir(String value)
value - GVCF Output DirCopyright © 2018. All rights reserved.