本文整理汇总了Java中org.knime.core.data.def.IntCell类的典型用法代码示例。如果您正苦于以下问题:Java IntCell类的具体用法?Java IntCell怎么用?Java IntCell使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IntCell类属于org.knime.core.data.def包,在下文中一共展示了IntCell类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getTypeOfElement
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
/**
* Find out type of element
*
* @param element
* @return <code>DataType</code> of element
*/
public static DataType getTypeOfElement(Object element) {
if (element instanceof Double) {
return DoubleCell.TYPE;
} else if (element instanceof Float) {
return DoubleCell.TYPE;
} else if (element instanceof String) {
return StringCell.TYPE;
} else if (element instanceof Integer) {
return IntCell.TYPE;
} else if (element instanceof Boolean) {
return BooleanCell.TYPE;
} else if (element instanceof Long) {
return LongCell.TYPE;
} else {
throw new UnsupportedOperationException("Class "
+ element.getClass().getName()
+ " is not supported for this operation");
}
}
开发者ID:pavloff-de,项目名称:spark4knime,代码行数:26,代码来源:TableCellUtils.java
示例2: NormalizeChromNodeDialog
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
public NormalizeChromNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName( NormalizeChromNodeModel.CHROM_COL_PROPERTY, NormalizeChromNodeModel.CHROM_COL_DEFAULT),
"Chromosome",
0,
new ColumnFilter()
{
@Override
public String allFilteredMsg()
{
return "Cannot find a column for a chromosome";
}
@Override
public boolean includeColumn(DataColumnSpec colSpec)
{
return colSpec.getType().equals(IntCell.TYPE) ||
colSpec.getType().equals(StringCell.TYPE);
}
}
));
addDialogComponent(new DialogComponentBoolean(
new SettingsModelBoolean( NormalizeChromNodeModel.CHR_PREFIX_PROPERTY, NormalizeChromNodeModel.CHR_PREFIX_DEFAULT),
"Append 'chr' prefix"
));
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:27,代码来源:NormalizeChromNodeDialog.java
示例3: endElement
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
@Override
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
throws SAXException
{
if(builder!=null)
{
DataRow row=new DefaultRow(RowKey.createRowKey(++rowOut),new IntCell(Integer.parseInt(builder.toString())));
container.addRowToTable(row);
exec.setProgress("ESearch "+(rowOut));
try {
exec.checkCanceled();
} catch (CanceledExecutionException e) {
throw new SAXException(e);
}
}
builder=null;
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:18,代码来源:ESearchNodeModel.java
示例4: createSpec
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
private DataTableSpec createSpec(DataTableSpec in)
{
return new DataTableSpec(in,
new DataTableSpec(new DataColumnSpec[]{
new DataColumnSpecCreator("label.das.features",StringCell.TYPE).createSpec(),
new DataColumnSpecCreator("linkUri.das.features",StringCell.TYPE).createSpec(),
new DataColumnSpecCreator("link.das.features",StringCell.TYPE).createSpec(),
new DataColumnSpecCreator("start.features",IntCell.TYPE).createSpec(),
new DataColumnSpecCreator("end.features",IntCell.TYPE).createSpec(),
new DataColumnSpecCreator("strand.das.features",StringCell.TYPE).createSpec(),
new DataColumnSpecCreator("type.das.features",StringCell.TYPE).createSpec(),
new DataColumnSpecCreator("id.das.features",StringCell.TYPE).createSpec()
}
)
);
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:18,代码来源:DasFeaturesNodeModel.java
示例5: configure
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
@Override
protected DataTableSpec[] configure(DataTableSpec[] inSpecs)
throws InvalidSettingsException
{
if(inSpecs==null || inSpecs.length!=1)
{
throw new InvalidSettingsException("Expected one table");
}
findColumnIndex(inSpecs[0], m_chromColumn,StringCell.TYPE);
findColumnIndex(inSpecs[0], m_posColumn,IntCell.TYPE);
String s=m_dasUri.getStringValue();
if(!s.contains(TAG))
{
throw new InvalidSettingsException("DAS uri contain the word \""+TAG+"\"");
}
return new DataTableSpec[]{createSpec(inSpecs[0])};
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:18,代码来源:DasFeaturesNodeModel.java
示例6: GenScanNodeDialog
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
protected GenScanNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName(
GenScanNodeModel.CHROM_COL_PROPERTY, GenScanNodeModel.CHROM_COL_DEFAULT),
"Chrom:",0,new DataTypeColumnFilter(StringCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName(
GenScanNodeModel.START_COL_PROPERTY, GenScanNodeModel.START_COL_DEFAULT),
"ChromStart:",0,new DataTypeColumnFilter(IntCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName(
GenScanNodeModel.END_COL_PROPERTY, GenScanNodeModel.END_COL_DEFAULT),
"ChromEnd:",0,new DataTypeColumnFilter(IntCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName(
GenScanNodeModel.VAL_COL_PROPERTY, GenScanNodeModel.VAL_COL_DEFAULT),
"Value:",0,false,true,new NumericColumnFilter()));
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:21,代码来源:GenScanNodeDialog.java
示例7: SamplePerSnpNodeDialog
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
protected SamplePerSnpNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName(
SamplePerSnpNodeModel.CHROM_COL_PROPERTY, SamplePerSnpNodeModel.CHROM_COL_DEFAULT),
"Chrom:",0,new DataTypeColumnFilter(StringCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName(
SamplePerSnpNodeModel.POS_COL_PROPERTY, SamplePerSnpNodeModel.POS_COL_DEFAULT),
"Pos:",0,new DataTypeColumnFilter(IntCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName(
SamplePerSnpNodeModel.REF_COL_PROPERTY, SamplePerSnpNodeModel.REF_COL_DEFAULT),
"Ref:",0,new DataTypeColumnFilter(StringCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName(
SamplePerSnpNodeModel.ALT_COL_PROPERTY, SamplePerSnpNodeModel.ALT_COL_DEFAULT),
"Alt:",0,new DataTypeColumnFilter(StringCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName(
SamplePerSnpNodeModel.SAMPLE_COL_PROPERTY, SamplePerSnpNodeModel.SAMPLE_COL_DEFAULT),
"Sample:",0,new DataTypeColumnFilter(StringCell.TYPE)));
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:27,代码来源:SamplePerSnpNodeDialog.java
示例8: createDataTableSpec
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
private DataTableSpec createDataTableSpec(boolean isBed) throws InvalidSettingsException
{
DataColumnSpec cols[];
if(isBed)
{
cols=new DataColumnSpec[]{
new DataColumnSpecCreator(this.m_newColName.getStringValue()+".start",IntCell.TYPE).createSpec(),
new DataColumnSpecCreator(this.m_newColName.getStringValue()+".end",IntCell.TYPE).createSpec(),
new DataColumnSpecCreator(this.m_newColName.getStringValue()+".rest",StringCell.TYPE).createSpec()
};
}
else
{
cols=new DataColumnSpec[]{
new DataColumnSpecCreator(this.m_newColName.getStringValue()+".start",IntCell.TYPE).createSpec(),
new DataColumnSpecCreator(this.m_newColName.getStringValue()+".end",IntCell.TYPE).createSpec(),
new DataColumnSpecCreator(this.m_newColName.getStringValue()+".value",DoubleCell.TYPE).createSpec()
};
}
return new DataTableSpec(cols);
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:22,代码来源:BigBedFileNodeModel.java
示例9: createVcfDataColumnSpec
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
private DataTableSpec createVcfDataColumnSpec()
{
DataColumnSpec[] allColSpecs = new DataColumnSpec[11];
allColSpecs[0] = new DataColumnSpecCreator("CHROM", StringCell.TYPE).createSpec();
allColSpecs[1] = new DataColumnSpecCreator("POS", IntCell.TYPE).createSpec();
allColSpecs[2] = new DataColumnSpecCreator("ID", StringCell.TYPE).createSpec();
allColSpecs[3] = new DataColumnSpecCreator("REF", StringCell.TYPE).createSpec();
allColSpecs[4] = new DataColumnSpecCreator("ALT", StringCell.TYPE).createSpec();
allColSpecs[5] = new DataColumnSpecCreator("QUAL", DoubleCell.TYPE).createSpec();
allColSpecs[6] = new DataColumnSpecCreator("FILTER", StringCell.TYPE).createSpec();
allColSpecs[7] = new DataColumnSpecCreator("INFO", StringCell.TYPE).createSpec();
allColSpecs[8] = new DataColumnSpecCreator("FORMAT", StringCell.TYPE).createSpec();
allColSpecs[9] = new DataColumnSpecCreator("CALL", StringCell.TYPE).createSpec();
allColSpecs[10] = new DataColumnSpecCreator("SAMPLE", StringCell.TYPE).createSpec();
return new DataTableSpec( allColSpecs);
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:18,代码来源:ReadVCFNodeModel.java
示例10: BigBedFileNodeDialog
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
protected BigBedFileNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName( BigBedFileNodeModel.CHROM1_COL_PROPERTY, BigBedFileNodeModel.DEFAULT_CHROM1_COL),
"Chromosome",
0,
new DataTypeColumnFilter(StringCell.TYPE)
));
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName( BigBedFileNodeModel.POS1_COL_PROPERTY, BigBedFileNodeModel.DEFAULT_POS1_COL),
"Position",
0,
new DataTypeColumnFilter(IntCell.TYPE)
));
addDialogComponent(new DialogComponentFileChooser(
new SettingsModelString( BigBedFileNodeModel.WIG_URI_PROPERTY, BigBedFileNodeModel.DEFAULT_WIG_URI),
"BigBedWigFile ",JFileChooser.OPEN_DIALOG,".bb",".bw",".bigbed",".bigwig"
));
addDialogComponent(new DialogComponentString(
new SettingsModelString( BigBedFileNodeModel.WIG_COLNAME, BigBedFileNodeModel.WIG_COLNAME_DEF),
"Column name",true,30
));
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:27,代码来源:BigBedFileNodeDialog.java
示例11: createDataSpec
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
private DataTableSpec createDataSpec()
{
String prefix=this.m_prefix.getStringValue()+".";
return new DataTableSpec(
new DataColumnSpec[]{
new DataColumnSpecCreator(prefix+"chrom", StringCell.TYPE).createSpec(),
new DataColumnSpecCreator(prefix+"chromStart", IntCell.TYPE).createSpec(),
new DataColumnSpecCreator(prefix+"chromEnd", IntCell.TYPE).createSpec(),
new DataColumnSpecCreator(prefix+"InOut", BooleanCell.TYPE).createSpec(),
new DataColumnSpecCreator(prefix+"Count", IntCell.TYPE).createSpec(),
new DataColumnSpecCreator(prefix+"Min", DoubleCell.TYPE).createSpec(),
new DataColumnSpecCreator(prefix+"Max", DoubleCell.TYPE).createSpec(),
new DataColumnSpecCreator(prefix+"Mean", DoubleCell.TYPE).createSpec()
}
);
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:17,代码来源:AggregationNodeModel.java
示例12: execute
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
private int execute(int outIndex,List<Range> ranges,BufferedDataContainer container)
throws Exception
{
for(int i=0;i<ranges.size();++i)
{
Range prev=(i>0?ranges.get(i-1):null);
Range mid=ranges.get(i);
Range next=(i+1< ranges.size()?ranges.get(i+1):null);
DataCell cells[]=new DataCell[]
{
new StringCell(mid.chrom),
new IntCell(prev==null?mid.chromStart:prev.chromEnd+1),
new IntCell(next==null?mid.chromEnd:next.chromStart-1),
(mid.under?BooleanCell.FALSE:BooleanCell.TRUE),
new IntCell(mid.count),
new DoubleCell(mid.min),
new DoubleCell(mid.max),
new DoubleCell(mid.total/mid.count)
};
container.addRowToTable(new DefaultRow(RowKey.createRowKey(++outIndex),cells));
}
return outIndex;
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:25,代码来源:AggregationNodeModel.java
示例13: configure
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
@Override
protected DataTableSpec[] configure(DataTableSpec[] inSpecs)
throws InvalidSettingsException {
if(inSpecs==null || inSpecs.length!=1)
{
throw new InvalidSettingsException("Expected one table");
}
DataTableSpec in=inSpecs[0];
int chromCol= in.findColumnIndex(m_chromCol.getColumnName());
if(chromCol==-1) throw new InvalidSettingsException("Cannot find column for chrom");
if(!(in.getColumnSpec(chromCol).getType().equals(IntCell.TYPE) ||
in.getColumnSpec(chromCol).getType().equals(StringCell.TYPE)
))
{
throw new InvalidSettingsException("Bad type for chrom:"+in.getColumnSpec(chromCol).getType());
}
DataTableSpec spec2= ReplacedColumnsTable.createTableSpec(in,
new DataColumnSpecCreator(in.getColumnSpec(chromCol).getName(),StringCell.TYPE).createSpec(),
chromCol);
return new DataTableSpec[]{spec2};
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:24,代码来源:NormalizeChromNodeModel.java
示例14: DistanceSnpNodeDialog
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
protected DistanceSnpNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName(
DistanceSnpNodeModel.CHROM_COL_PROPERTY, DistanceSnpNodeModel.CHROM_COL_DEFAULT),
"Chrom:",0,new DataTypeColumnFilter(StringCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName(
DistanceSnpNodeModel.POS_COL_PROPERTY, DistanceSnpNodeModel.POS_COL_DEFAULT),
"Pos:",0,new DataTypeColumnFilter(IntCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName(
DistanceSnpNodeModel.SAMPLE_COL_PROPERTY, DistanceSnpNodeModel.SAMPLE_COL_DEFAULT),
"Sample:",0,new DataTypeColumnFilter(StringCell.TYPE)));
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:17,代码来源:DistanceSnpNodeDialog.java
示例15: configure
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
@Override
protected DataTableSpec[] configure(DataTableSpec[] inSpecs)
throws InvalidSettingsException {
if(inSpecs==null || inSpecs.length!=2)
{
throw new InvalidSettingsException("Expected two tables");
}
DataTableSpec in=inSpecs[0];
findColumnIndex(in,this.m_chrom1Col,StringCell.TYPE);
findColumnIndex(in, this.m_posCol,IntCell.TYPE);
findColumnIndex(inSpecs[1],this.m_chrom2Col,StringCell.TYPE);
findColumnIndex(inSpecs[1], this.m_start,IntCell.TYPE);
findColumnIndex(inSpecs[1], this.m_end,IntCell.TYPE);
return new DataTableSpec[]{new DataTableSpec(in,inSpecs[1]) };
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:18,代码来源:InRegionNodeModel.java
示例16: IGVNodeDialog
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
public IGVNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName(
IGVNodeModel.CHROM_COL_PROPERTY, IGVNodeModel.CHROM_COL_DEFAULT),
"Chrom:",0,new DataTypeColumnFilter(StringCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName(
IGVNodeModel.POS_COL_PROPERTY, IGVNodeModel.POS_COL_DEFAULT),
"Pos:",0,new DataTypeColumnFilter(IntCell.TYPE)));
addDialogComponent(new DialogComponentString(
new SettingsModelString( IGVNodeModel.IGV_HOST_PROPERTY, IGVNodeModel.IGV_HOST_DEFAULT),
"IGV Host:",true,20));
addDialogComponent(new DialogComponentNumber(
new SettingsModelInteger( IGVNodeModel.IGV_PORT_PROPERTY, IGVNodeModel.IGV_PORT_DEFAULT),
"IGV Port:",10));
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:20,代码来源:IGVNodeDialog.java
示例17: SamplePerSnpNodeDialog
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
protected SamplePerSnpNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName(
SamplePerSnpNodeModel.CHROM_COL_PROPERTY, SamplePerSnpNodeModel.CHROM_COL_DEFAULT),
"Chrom:",0,new DataTypeColumnFilter(StringCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName(
SamplePerSnpNodeModel.POS_COL_PROPERTY, SamplePerSnpNodeModel.POS_COL_DEFAULT),
"Pos:",0,new DataTypeColumnFilter(IntCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName(
SamplePerSnpNodeModel.SAMPLE_COL_PROPERTY, SamplePerSnpNodeModel.SAMPLE_COL_DEFAULT),
"Sample:",0,new DataTypeColumnFilter(StringCell.TYPE)));
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:20,代码来源:SamplePerSnpNodeDialog.java
示例18: getDataType
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
public DataType getDataType() throws InvalidSettingsException
{
if(m_dataType.getStringValue().equals("Long"))
{
return LongCell.TYPE;
}
else if(m_dataType.getStringValue().equals("Integer"))
{
return IntCell.TYPE;
}
else if(m_dataType.getStringValue().equals("Double"))
{
return DoubleCell.TYPE;
}
else if(m_dataType.getStringValue().equals("Boolean"))
{
return BooleanCell.TYPE;
}
return StringCell.TYPE;
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:21,代码来源:ExtractFormatMultiNodeModel.java
示例19: createVcfDataColumnSpec
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
private DataTableSpec createVcfDataColumnSpec()
{
DataColumnSpec[] allColSpecs = new DataColumnSpec[11];
allColSpecs[0] = new DataColumnSpecCreator("CHROM", StringCell.TYPE).createSpec();
allColSpecs[1] = new DataColumnSpecCreator("POS", IntCell.TYPE).createSpec();
allColSpecs[2] = new DataColumnSpecCreator("ID", StringCell.TYPE).createSpec();
allColSpecs[3] = new DataColumnSpecCreator("REF", StringCell.TYPE).createSpec();
allColSpecs[4] = new DataColumnSpecCreator("ALT", StringCell.TYPE).createSpec();
allColSpecs[5] = new DataColumnSpecCreator("QUAL", DoubleCell.TYPE).createSpec();
allColSpecs[6] = new DataColumnSpecCreator("FILTER", StringCell.TYPE).createSpec();
allColSpecs[7] = new DataColumnSpecCreator("INFO", StringCell.TYPE).createSpec();
allColSpecs[8] = new DataColumnSpecCreator("FORMAT", StringCell.TYPE).createSpec();
allColSpecs[9] = new DataColumnSpecCreator("CALL", StringCell.TYPE).createSpec();
allColSpecs[10] = new DataColumnSpecCreator("SAMPLE", StringCell.TYPE).createSpec();
return new DataTableSpec( allColSpecs);
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:18,代码来源:ReadOneVCFNodeModel.java
示例20: make
import org.knime.core.data.def.IntCell; //导入依赖的package包/类
public Segment make(DataRow row)
{
DataCell c=row.getCell(chromCol);
if(c.isMissing()) return null;
String chrom=StringCell.class.cast(c).getStringValue();
c=row.getCell(chromStartCol);
if(c.isMissing()) return null;
int start=IntCell.class.cast(c).getIntValue();
c=row.getCell(chromEndCol);
if(c.isMissing()) return null;
int end=IntCell.class.cast(c).getIntValue();
return new Segment(chrom, start,end);
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:17,代码来源:BedKSorter.java
注:本文中的org.knime.core.data.def.IntCell类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论