Liking cljdoc? Tell your friends :D

varity.ref-gene

Handles refGene.txt(.gz) content.

Handles refGene.txt(.gz) content.
raw docstring

cds->genomic-posclj

(cds->genomic-pos cds-pos rg)
(cds->genomic-pos cds-pos region {:keys [strand cds-start cds-end exon-ranges]})
source

cds-coordclj

(cds-coord pos rg)

Converts the genomic position into the cDNA coordinate. The return value is clj-hgvs.coordinate/CDNACoordinate record.

Converts the genomic position into the cDNA coordinate. The return value is
clj-hgvs.coordinate/CDNACoordinate record.
sourceraw docstring

cds-coord->genomic-posclj

(cds-coord->genomic-pos coord {:keys [strand] :as rg})

Converts the cDNA coordinate into the genomic position. coord must be clj-hgvs.coordinate/CDNACoordinate record.

Converts the cDNA coordinate into the genomic position. coord must be
clj-hgvs.coordinate/CDNACoordinate record.
sourceraw docstring

cds-posclj

(cds-pos pos {:keys [strand cds-start cds-end exon-ranges]})
source

cds-regionclj

(cds-region {:keys [chr cds-start cds-end strand]})

Returns a genomic region of a coding sequence of the given gene. Returns nil if the gene is a non-coding RNA.

Returns a genomic region of a coding sequence of the given gene. Returns nil
if the gene is a non-coding RNA.
sourceraw docstring

cds-seqclj

(cds-seq {:keys [cds-start cds-end] :as ref-gene-record})

Returns a lazy sequence of exons included in a coding region of a ref-gene-record. Note that exons outside of the CDS are removed and partially overlapping ones are cropped in the result. Returns nil if the record is a non-coding RNA.

Returns a lazy sequence of exons included in a coding region of a
`ref-gene-record`. Note that exons outside of the CDS are removed and
partially overlapping ones are cropped in the result. Returns nil if the record
is a non-coding RNA.
sourceraw docstring

exon-seqclj

(exon-seq {:keys [chr strand exon-ranges]})

Returns a lazy sequence of regions corresponding to each exon in a gene. The exons are ordered by their index, thus they're reversed in genomic coordinate if the refGene record is on the reverse strand.

Returns a lazy sequence of regions corresponding to each exon in a gene. The
exons are ordered by their index, thus they're reversed in genomic coordinate
if the refGene record is on the reverse strand.
sourceraw docstring

in-any-exon?clj

(in-any-exon? chr pos rgidx)

Returns true if chr:pos is located in any ref-gene exon, else false.

Returns true if chr:pos is located in any ref-gene exon, else false.
sourceraw docstring

in-cds?clj

(in-cds? pos {:keys [cds-start cds-end]})

Returns true if pos is in the coding region, false otherwise.

Returns true if pos is in the coding region, false otherwise.
sourceraw docstring

in-exon?clj

(in-exon? pos {:keys [exon-ranges]})

Returns true if pos is in the exon region, false otherwise.

Returns true if pos is in the exon region, false otherwise.
sourceraw docstring

indexclj

(index rgs)

Creates refGene index for search.

Creates refGene index for search.
sourceraw docstring

load-ref-genesclj

(load-ref-genes f)

Loads f (e.g. refGene.txt(.gz)), returning the all contents as a sequence.

Loads f (e.g. refGene.txt(.gz)), returning the all contents as a sequence.
sourceraw docstring

max-tx-marginclj

source

read-coding-sequenceclj

(read-coding-sequence seq-rdr ref-gene-record)

Reads a coding sequence of a ref-gene record ref-gene-record from seq-rdr. Returns nil if the gene is a non-coding RNA.

Reads a coding sequence of a ref-gene record `ref-gene-record` from
`seq-rdr`. Returns nil if the gene is a non-coding RNA.
sourceraw docstring

read-exon-sequenceclj

(read-exon-sequence seq-rdr {:keys [strand] :as exon})

Reads a base sequence of an exon from seq-rdr.

Reads a base sequence of an `exon` from `seq-rdr`.
sourceraw docstring

read-transcript-sequenceclj

(read-transcript-sequence seq-rdr ref-gene-record)

Reads a DNA base sequence of a ref-gene-record from seq-rdr. The sequence contains 5'-UTR, CDS and 3'-UTR.

Reads a DNA base sequence of a `ref-gene-record` from `seq-rdr`. The sequence
contains 5'-UTR, CDS and 3'-UTR.
sourceraw docstring

ref-genesclj

(ref-genes s rgidx)
(ref-genes chr pos rgidx)
(ref-genes chr pos rgidx tx-margin)

Searches refGene entries with ref-seq, gene or (chr, pos) using index, returning results as sequence. See also varity.ref-gene/index.

Searches refGene entries with ref-seq, gene or (chr, pos) using index,
returning results as sequence. See also varity.ref-gene/index.
sourceraw docstring

seek-gene-regionclj

(seek-gene-region chr pos rgidx)
(seek-gene-region chr pos rgidx name)

Seeks chr:pos through exon entries in refGene and returns those indices

Seeks chr:pos through exon entries in refGene and returns those indices
sourceraw docstring

tx-regionclj

(tx-region {:keys [chr tx-start tx-end strand]})

Returns a genomic region of the given gene.

Returns a genomic region of the given gene.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close