Learn R Programming

aroma.core (version 2.4.1)

AromaGenomeTextFile: The AromaGenomeTextFile class

Description

Package: aroma.core Class AromaGenomeTextFile Object ~~| ~~+--FullNameInterface ~~~~~~~| ~~~~~~~+--GenericDataFile ~~~~~~~~~~~~| ~~~~~~~~~~~~+--GenericTabularFile ~~~~~~~~~~~~~~~~~| ~~~~~~~~~~~~~~~~~+--TabularTextFile ~~~~~~~~~~~~~~~~~~~~~~| ~~~~~~~~~~~~~~~~~~~~~~+--AromaGenomeTextFile Directly known subclasses: AromaUcscGenomeTextFile public abstract static class AromaGenomeTextFile extends TabularTextFile An AromaGenomeTextFile represents a annotation tabular text file that specifies the number of bases (nucleotides) per chromosome for a particular genome/organism.

Usage

AromaGenomeTextFile(...)

Arguments

...
Arguments passed to TabularTextFile.

Fields and Methods

Methods: rll{ byGenome - findByGenome - readDataFrame - } Methods inherited from TabularTextFile: [, as.character, getColumnNames, getCommentChar, getHeader, getReadArguments, hasColumnHeader, nbrOfLines, nbrOfRows, readColumnNames, readColumns, readDataFrame, readLines, readRawHeader, setCommentChar, writeColumnsToFiles Methods inherited from GenericTabularFile: as.character, dim, extractMatrix, getColumnNames, getColumnNameTranslator, nbrOfColumns, nbrOfRows, readColumns, readDataFrame, setColumnNameTranslator, translateColumnNames Methods inherited from GenericDataFile: getParentName, compareChecksum, copyTo, equals, fromFile, getAlias, getAttribute, getAttributes, getChecksum, getCreatedOn, getDefaultFullName, getExtension, getExtensionPattern, getFilename, getFilenameExtension, getFileSize, getFileType, getLastAccessedOn, getLastModifiedOn, getOutputExtension, getPath, getPathname, gunzip, gzip, hasBeenModified, isFile, readChecksum, renameTo, renameToUpperCaseExt, setAlias, setAttribute, setAttributes, setAttributesBy, setAttributesByTags, setExtensionPattern, testAttributes, validateChecksum, writeChecksum Methods inherited from FullNameInterface: appendFullNameTranslator, appendFullNameTranslatorBycharacter, appendFullNameTranslatorBydata.frame, appendFullNameTranslatorByfunction, appendFullNameTranslatorBylist, appendFullNameTranslatorByNULL, appendFullNameTranslatorByTabularTextFile, appendFullNameTranslatorByTabularTextFileSet, clearFullNameTranslator, clearListOfFullNameTranslators, getDefaultFullName, getFullName, getFullNameTranslator, getListOfFullNameTranslators, getName, getTags, hasTag, hasTags, setFullName, setFullNameTranslator, setListOfFullNameTranslators, setName, setTags, updateFullName Methods inherited from Object: asThis, getChecksum, $, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clearLookupCache, clone, detach, equals, extend, finalize, gc, getEnvironment, getFieldModifier, getFieldModifiers, getFields, getInstantiationTime, getStaticInstance, hasField, hashCode, ll, load, objectSize, print, registerFinalizer, save

Details

An AromaGenomeTextFile is a tab-delimited text file with a header containing (at least) column names 'chromosome' and 'nbrOfBases'. The 'chromosome' column specifies the chromosomes (character strings) and the 'nbrOfBases' column specifies the lengths (integer) of the chromosomes in number of bases (nucleotides). The filename of an AromaGenomeTextFile should have format ",chromosomes(,)*.txt", and be located in annotationData/genomes//, e.g. annotationData/genomes/Human/Human,chromosomes,max,20090503.txt.

Examples

Run this code
# Locate a Human,chromosomes(,.*)*.txt file
db <- AromaGenomeTextFile$byGenome("Human");
print(db);

# Read the data
df <- readDataFrame(db);
print(df);
str(df);

# Details on the file format
oopts <- options(width=40);
print(readLines(db));
options(oopts);

Run the code above in your browser using DataLab