-
- All Implemented Interfaces:
-
java.lang.Runnable
,net.maizegenetics.plugindef.Plugin
,net.maizegenetics.plugindef.PluginListener
,net.maizegenetics.util.ProgressListener
@Deprecated() public class CountNsInRawHapSequencesPlugin extends AbstractPlugin
NOTE: THis test is obsolete - uses old schema and old connection method. Calculates the percentage of N's for each "raw" haplotype (ie, not consensus) for each genome interval (anchor, not inter-anchors). Results shoudl be printed to a tab-delimited file with genome_interval_id as rows, and taxa/percentage as the columns. Testing: Testing was done by random manual checking. Once the output file is created, it is uploaded to excel. use sqlite3 on machine holding db. Look at sequences and verify when it has "1" as percent, there are all N's. WHen 0, there are 0. When a percentage, e.g. .53, the sequence looks to be half N's. Find gamete_grp_id for the line you want to check: sqlite> SELECT gamete_haplotypes.gamete_grp_id FROM gamete_haplotypes sqlite> INNER JOIN gametes ON gametes.gameteid=gamete_haplotypes.gameteid sqlite> INNER JOIN genotypes on gametes.genoid=genotypes.genoid sqlite> WHERE genotypes.line_name='CML247'; sqlite> 5 (this is returned value) Then look at the sequence: sqlite> select gamete_grp_id, genome_interval_id,sequence from haplotypes where gamete_grp_id=5 and genome_interval_id=111;
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
DEFAULT_CITATION
public final static String
POSITION_LIST_NONE
public final static String
TAXA_LIST_NONE
-
Constructor Summary
Constructors Constructor Description CountNsInRawHapSequencesPlugin()
CountNsInRawHapSequencesPlugin(Frame parentFrame)
CountNsInRawHapSequencesPlugin(Frame parentFrame, boolean isInteractive)
-
Method Summary
Modifier and Type Method Description DataSet
processData(DataSet input)
static void
main(Array<String> args)
ImageIcon
getIcon()
String
getButtonName()
String
getToolTipText()
String
hostname()
Hostname where database resides CountNsInRawHapSequencesPlugin
hostname(String value)
Set Hostname. String
userid()
Userid for database CountNsInRawHapSequencesPlugin
userid(String value)
Set Userid. String
password()
Password for database CountNsInRawHapSequencesPlugin
password(String value)
Set Password. String
databaseName()
Database name CountNsInRawHapSequencesPlugin
databaseName(String value)
Set Database Name. String
outputFile()
Output File CountNsInRawHapSequencesPlugin
outputFile(String value)
Set Output File. -
Methods inherited from class net.maizegenetics.plugindef.AbstractPlugin
addListener, cancel, convert, dataSetReturned, getCitation, getInputs, getListeners, getMenu, getPanel, getParameter, getParentFrame, getUsage, getUsageHTML, hasListeners, isInteractive, isPluginParameter, performFunction, pluginDescription, pluginParameters, pluginUserManualURL, progress, receiveInput, reverseTrace, run, setConfigParameters, setParameter, setParameters, setParametersToDefault, setThreaded, trace, usageParameters, wasCancelled
-
Methods inherited from class net.maizegenetics.plugindef.Plugin
getPluginInstance, isPlugin
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
processData
DataSet processData(DataSet input)
-
getButtonName
String getButtonName()
-
getToolTipText
String getToolTipText()
-
hostname
CountNsInRawHapSequencesPlugin hostname(String value)
Set Hostname. Hostname where database resides
- Parameters:
value
- Hostname
-
userid
CountNsInRawHapSequencesPlugin userid(String value)
Set Userid. Userid for database
- Parameters:
value
- Userid
-
password
CountNsInRawHapSequencesPlugin password(String value)
Set Password. Password for database
- Parameters:
value
- Password
-
databaseName
String databaseName()
Database name
-
databaseName
CountNsInRawHapSequencesPlugin databaseName(String value)
Set Database Name. Database name
- Parameters:
value
- Database Name
-
outputFile
String outputFile()
Output File
-
outputFile
CountNsInRawHapSequencesPlugin outputFile(String value)
Set Output File. Output File
- Parameters:
value
- Output File
-
-
-
-