Source of file Chromosome.php
Size: 2,542 Bytes - Last Modified: 2019-05-10T12:24:09+01:00
src/Core/Chromosome.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
Covered by 1 test(s):
58
Covered by 1 test(s):
596061626364656667
Covered by 1 test(s):
6869707172737475767778
Covered by 1 test(s):
79
Covered by 1 test(s):
808182838485868788
Covered by 1 test(s):
8990919293949596979899100
Covered by 1 test(s):
101
Covered by 1 test(s):
102103104105106107108109110111
Covered by 1 test(s):
112113114
| <?php /** * Copyright 2016 University of Liverpool * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ namespace pgb_liv\php_ms\Core; /** * Class for chromosome identification object, provides storage for assigning a name, strand and version. * * @author Andrew Collins */ class Chromosome { /** * Name of this chromosome * * @var string */ private $name; /** * Strand of this chomosome * * @var string */ private $strand; /** * The reference genome and versioning string as used for mapping. * All coordinates are within this frame of reference * * @var string */ private $genomeReferenceVersion; /** * Sets the chromosome name * * @param string $name * value to set */ public function setName($name) { $this->name = $name; } /** * Gets the name for this chromosome * * @return string */ public function getName() { return $this->name; } /** * Sets the chromosome strand * * @param string $strand * value to set */ public function setStrand($strand) { $this->strand = $strand; } /** * Gets the chromosome strand * * @return string */ public function getStrand() { return $this->strand; } /** * Sets the reference genome and versioning string as used for mapping. * All coordinates are within this frame of reference * * @param string $version * Version value to set to */ public function setGenomeReferenceVersion($version) { $this->genomeReferenceVersion = $version; } /** * Gets the reference genome and versioning string as used for mapping. * All coordinates are within this frame of reference. * * @return string */ public function getGenomeReferenceVersion() { return $this->genomeReferenceVersion; } } |