BedFeatureWriter
in package
implements
BedFeatureWriterInterface
The inverse of BedFeatureReader. PlasmidFeature's 1-based inclusive coordinates are converted back to BED's zero-based, half-open ones the same way the reader converted them in : chromStart = start - 1, chromEnd = end. An origin-crossing feature (start > end) has no BED representation - BedFeatureReader already rejects one coming in with a warning, and this writer rejects one going out by throwing, for the same reason GffFeatureWriter does.
Class BedFeatureWriter
Tags
Table of Contents
Interfaces
- BedFeatureWriterInterface
- Interface BedFeatureWriterInterface - the inverse of BedFeatureReaderInterface : serializes PlasmidFeature instances into BED text.
Methods
- write() : string
- writeFeatureLine() : string
Methods
write()
public
write(string $sChrom, array<string|int, PlasmidFeature> $aFeatures) : string
Parameters
- $sChrom : string
- $aFeatures : array<string|int, PlasmidFeature>
Return values
stringwriteFeatureLine()
private
writeFeatureLine(string $sChrom, PlasmidFeature $oFeature) : string
Parameters
- $sChrom : string
- $oFeature : PlasmidFeature