xml

package
v0.0.0-...-7cd1f7c Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2017 License: GPL-3.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupIdentification

type GroupIdentification struct {
	GroupNumber uint32
	Probability float64
	Proteins    ProtIDList
}

GroupIdentification tag

type GroupList

type GroupList []GroupIdentification

GroupList represents a protein group list

type PepIDList

type PepIDList []PeptideIdentification

PepIDList is a list of PeptideSpectrumMatch

func (PepIDList) Len

func (p PepIDList) Len() int

Len function for Sort

func (PepIDList) Less

func (p PepIDList) Less(i, j int) bool

Less function for Sort

func (*PepIDList) Restore

func (p *PepIDList) Restore(level string) error

Restore reads philosopher results files and restore the data sctructure

func (*PepIDList) Serialize

func (p *PepIDList) Serialize(level string) error

Serialize converts the whle structure to a gob file

func (PepIDList) Swap

func (p PepIDList) Swap(i, j int)

Swap function for Sort

type PepXML

type PepXML struct {
	FileName              string
	SpectraFile           string
	DecoyTag              string
	Database              string
	Prophet               string
	DefinedModMassDiff    map[float64]float64
	DefinedModAminoAcid   map[float64]string
	Models                []pep.DistributionPoint
	PeptideIdentification PepIDList
}

PepXML data

func (*PepXML) PromoteProteinIDs

func (p *PepXML) PromoteProteinIDs()

PromoteProteinIDs promotes protein identifications where the reference protein is indistinguishable to other target proteins.

func (*PepXML) Read

func (p *PepXML) Read(f string) error

Read is the main function for parsing pepxml data

func (*PepXML) ReportModels

func (p *PepXML) ReportModels(session, name string) (err error)

ReportModels creates PNG images using the PeptideProphet TD score distribution

func (*PepXML) Restore

func (p *PepXML) Restore() error

Restore reads philosopher results files and restore the data sctructure

func (*PepXML) Serialize

func (p *PepXML) Serialize() error

Serialize converts the whle structure to a gob file

type PeptideIdentification

type PeptideIdentification struct {
	Index                     uint32
	Spectrum                  string
	Scan                      int
	Peptide                   string
	Protein                   string
	ModifiedPeptide           string
	AlternativeProteins       []string
	AlternativeTargetProteins []string
	ModPositions              []string
	AssignedModMasses         []float64
	AssignedMassDiffs         []float64
	AssignedAminoAcid         []string
	AssumedCharge             uint8
	HitRank                   uint8
	PrecursorNeutralMass      float64
	PrecursorExpMass          float64
	RetentionTime             float64
	CalcNeutralPepMass        float64
	RawMassDiff               float64
	Massdiff                  float64
	LocalizedMassDiff         string
	Probability               float64
	Expectation               float64
	Xcorr                     float64
	DeltaCN                   float64
	DeltaCNStar               float64
	SPScore                   float64
	SPRank                    float64
	Hyperscore                float64
	Nextscore                 float64
	DiscriminantValue         float64
	Intensity                 float64
}

PeptideIdentification struct

type PeptideIonIdentification

type PeptideIonIdentification struct {
	PeptideSequence         string
	ModifiedPeptide         string
	Charge                  uint8
	InitialProbability      float64
	Weight                  float64
	GroupWeight             float64
	CalcNeutralPepMass      float64
	SharedParentProteins    int
	Razor                   int
	IsNondegenerateEvidence bool
	IsUnique                bool
	Labels                  tmt.Labels
}

PeptideIonIdentification struct

type Precursor

type Precursor struct {
	ParentIndex   int
	ParentScan    int
	SelectedIon   float64
	ChargeState   int
	PeakIntensity float64
}

Precursor struct

type ProtIDList

type ProtIDList []ProteinIdentification

ProtIDList list represents a list of custom protein identifications

func (ProtIDList) Len

func (p ProtIDList) Len() int

Len function for sortng

func (ProtIDList) Less

func (p ProtIDList) Less(i, j int) bool

Less function for sorting

func (*ProtIDList) Restore

func (p *ProtIDList) Restore() error

Restore reads philosopher results files and restore the data sctructure

func (*ProtIDList) Serialize

func (p *ProtIDList) Serialize() error

Serialize converts the whle structure to a gob file

func (ProtIDList) Swap

func (p ProtIDList) Swap(i, j int)

Swap function for sorting

type ProtXML

type ProtXML struct {
	FileName   string
	DecoyTag   string
	Groups     GroupList
	RunOptions string
}

ProtXML struct

func (*ProtXML) PromoteProteinIDs

func (p *ProtXML) PromoteProteinIDs()

PromoteProteinIDs promotes protein identifications where the reference protein is indistinguishable to other target proteins.

func (*ProtXML) Read

func (p *ProtXML) Read(f string) error

Read ...

func (*ProtXML) Restore

func (p *ProtXML) Restore() error

Restore reads philosopher results files and restore the data sctructure

func (*ProtXML) Serialize

func (p *ProtXML) Serialize() error

Serialize converts the whle structure to a gob file

type ProteinIdentification

type ProteinIdentification struct {
	GroupNumber            uint32
	GroupSiblingID         string
	ProteinName            string
	UniqueStrippedPeptides []string
	Length                 int
	PercentCoverage        float32
	PctSpectrumIDs         float32
	GroupProbability       float64
	Probability            float64
	Confidence             float64
	//RazorTopPepProb          float64
	TopPepProb               float64
	IndistinguishableProtein []string
	PeptideIons              []PeptideIonIdentification
	HasRazor                 bool
	Picked                   int
}

ProteinIdentification struct

type Raw

type Raw struct {
	FileName string
	Spectra  Spectra
}

Raw struct

func (*Raw) Read

func (s *Raw) Read(f, t string) error

func (*Raw) Restore

func (s *Raw) Restore() error

Restore reads philosopher results files and restore the data sctructure

func (*Raw) Serialize

func (s *Raw) Serialize() error

Serialize converts the whle structure to a gob file

type Spectra

type Spectra []Spectrum

Spectra is a list of Spetrum

func (Spectra) Len

func (s Spectra) Len() int

Len function for Sort

func (Spectra) Less

func (s Spectra) Less(i, j int) bool

Less function for Sort

func (Spectra) Swap

func (s Spectra) Swap(i, j int)

Swap function for Sort

type Spectrum

type Spectrum struct {
	Index       int
	Scan        int
	Level       int
	StartTime   float64
	EndTime     float64
	Precursor   Precursor
	Peaks       []byte
	Intensities []byte
}

Spectrum struct

Jump to

Keyboard shortcuts

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