gtf

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 6 Imported by: 4

Documentation

Overview

Package gtf is used to read gtf features. ref: http://mblab.wustl.edu/GTF22.html

Index

Constants

View Source
const Version = 2.2

Version is the GTF version

Variables

View Source
var Threads = runtime.NumCPU()

Threads for bread.NewBufferedReader()

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Tag, Value string
}

Attribute is the attribute

type Feature

type Feature struct {
	SeqName    string
	Source     string
	Feature    string
	Start      int
	End        int
	Score      *float64
	Strand     *string
	Frame      *int
	Attributes []Attribute
}

Feature is the gff feature struct

func ReadFeatures

func ReadFeatures(file string) ([]Feature, error)

ReadFeatures returns gtf features of a file

func ReadFilteredFeatures

func ReadFilteredFeatures(file string, chrs []string, feats []string, attrs []string) ([]Feature, error)

ReadFilteredFeatures returns gtf features of specific chrs in a file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL