ParseTransfacSiteManager
extends ParseTransfacAbstractManager
in package
Class ParseTransfacSiteManager A site record describes one regulatory element : the stretch of DNA a factor was found to bind, where it sits relative to the transcription start site of its gene, and which factor binds it.
Tags
Table of Contents
Properties
- $accession : string
- $dateCreated : string
- $dateUpdated : string
- $id : string
- $bindingFactors : array<string|int, mixed>
- $comments : string
- $description : string
- $firstPosition : string
- Position of the first base, counted from the transcription start site, so a site sitting upstream of it reads negative.
- $geneRegion : string
- $method : string
- $organism : string
- $seqType : string
- Sequence type, e.g. "D" for a DNA element taken from a gene.
- $sequence : string
- The sequence of the element itself.
Methods
- __construct() : mixed
- Constructor.
- getAccession() : string
- getBindingFactors() : array<string|int, mixed>
- getComments() : string
- getDateCreated() : string
- getDateUpdated() : string
- getDescription() : string
- getEntryId() : string
- Extracts the identifier uniquely naming a TRANSFAC record, its accession number.
- getFirstPosition() : string
- getFormat() : string
- The name this format is known by in the collection records and in DatabaseParserFactory.
- getGeneRegion() : string
- getId() : string
- getMethod() : string
- getOrganism() : string
- getSeqType() : string
- getSequence() : string
- isEntryEnd() : bool
- Tells whether a line closes a TRANSFAC record.
- isEntryStart() : bool
- Tells whether a line opens a new TRANSFAC record, which the accession number does.
- parseDataFile() : Sequence
- Parses a TRANSFAC site data file and populates this manager's fields.
- append() : string
- Appends the data of a line to a field written over several of them.
- parseCommonField() : bool
- Reads the fields every TRANSFAC record carries, and says whether it did : a subclass calls this first and only looks at the labels of its own record when it did not.
- parseDate() : mixed
- Parses one DT line, which dates either the creation or the last update of the record and may carry a time of day.
- readData() : string
- Reads the data a line carries, which starts at its fifth column.
- readLabel() : string
- Reads the two-letter label a line carries.
- splitList() : array<string|int, mixed>
- Splits a field listing its values, semicolon separated and possibly closed by a period, into its items.
Properties
$accession
protected
string
$accession
= ""
$dateCreated
protected
string
$dateCreated
= ""
$dateUpdated
protected
string
$dateUpdated
= ""
$id
protected
string
$id
= ""
$bindingFactors
private
array<string|int, mixed>
$bindingFactors
= []
$comments
private
string
$comments
= ""
$description
private
string
$description
= ""
$firstPosition
Position of the first base, counted from the transcription start site, so a site sitting upstream of it reads negative.
private
string
$firstPosition
= ""
$geneRegion
private
string
$geneRegion
= ""
$method
private
string
$method
= ""
$organism
private
string
$organism
= ""
$seqType
Sequence type, e.g. "D" for a DNA element taken from a gene.
private
string
$seqType
= ""
$sequence
The sequence of the element itself.
private
string
$sequence
= ""
Methods
__construct()
Constructor.
public
__construct() : mixed
getAccession()
public
getAccession() : string
Return values
stringgetBindingFactors()
public
getBindingFactors() : array<string|int, mixed>
Return values
array<string|int, mixed>getComments()
public
getComments() : string
Return values
stringgetDateCreated()
public
getDateCreated() : string
Return values
stringgetDateUpdated()
public
getDateUpdated() : string
Return values
stringgetDescription()
public
getDescription() : string
Return values
stringgetEntryId()
Extracts the identifier uniquely naming a TRANSFAC record, its accession number.
public
static getEntryId(array<string|int, mixed> $aFlines, string $sLine) : string
Parameters
- $aFlines : array<string|int, mixed>
-
The whole file, buffered
- $sLine : string
-
The line opening the entry
Return values
stringgetFirstPosition()
public
getFirstPosition() : string
Return values
stringgetFormat()
The name this format is known by in the collection records and in DatabaseParserFactory.
public
static getFormat() : string
Return values
stringgetGeneRegion()
public
getGeneRegion() : string
Return values
stringgetId()
public
getId() : string
Return values
stringgetMethod()
public
getMethod() : string
Return values
stringgetOrganism()
public
getOrganism() : string
Return values
stringgetSeqType()
public
getSeqType() : string
Return values
stringgetSequence()
public
getSequence() : string
Return values
stringisEntryEnd()
Tells whether a line closes a TRANSFAC record.
public
static isEntryEnd(string $sLine) : bool
Parameters
- $sLine : string
-
The line to analyze
Return values
boolisEntryStart()
Tells whether a line opens a new TRANSFAC record, which the accession number does.
public
static isEntryStart(string $sLine) : bool
Parameters
- $sLine : string
-
The line to analyze
Return values
boolparseDataFile()
Parses a TRANSFAC site data file and populates this manager's fields.
public
parseDataFile(array<string|int, mixed> $aFlines) : Sequence
Parameters
- $aFlines : array<string|int, mixed>
-
The lines the script has to parse
Tags
Return values
Sequence —$oSequence
append()
Appends the data of a line to a field written over several of them.
protected
append(string $sBuffer, string $sData) : string
Parameters
- $sBuffer : string
- $sData : string
Return values
stringparseCommonField()
Reads the fields every TRANSFAC record carries, and says whether it did : a subclass calls this first and only looks at the labels of its own record when it did not.
protected
parseCommonField(string $sLabel, string $sData) : bool
Parameters
- $sLabel : string
- $sData : string
Return values
boolparseDate()
Parses one DT line, which dates either the creation or the last update of the record and may carry a time of day.
protected
parseDate(string $sData) : mixed
Format : DT 20.06.90 11:00:03 (created); ewi.
Parameters
- $sData : string
readData()
Reads the data a line carries, which starts at its fifth column.
protected
static readData(string $sLine) : string
Parameters
- $sLine : string
-
The line to analyze
Return values
stringreadLabel()
Reads the two-letter label a line carries.
protected
static readLabel(string $sLine) : string
Parameters
- $sLine : string
-
The line to analyze
Return values
stringsplitList()
Splits a field listing its values, semicolon separated and possibly closed by a period, into its items.
protected
splitList(string $sText[, string $sSeparator = ";" ]) : array<string|int, mixed>
Parameters
- $sText : string
- $sSeparator : string = ";"