package
Version:
v1.4.0
Opens a new window with list of versions in this module.
Published: Dec 1, 2020
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package output writes results to a file.
func Write(
filePath,
format string,
outputData Data,
)
Write gene results to a file.
type Data struct {
Database string `json:"database"`
Enzyme string `json:"enzyme,omitempty"`
FDR float64 `json:"fdr,omitempty"`
File string `json:"file"`
Genes map[string]*Gene `json:"genes"`
MissedCleavages int `json:"missedCleavages,omitempty"`
PeptideProbability float64 `json:"peptideProbability,omitempty"`
Pipeline string `json:"pipeline"`
}
Data is a map of genes to their output summary.
type Gene struct {
Name string `json:"name"`
Peptides map[string]Peptide `json:"peptides"`
SharedIDs []string `json:"sharedIDs"`
SharedNames []string `json:"sharedNames"`
SpectralCount float64 `json:"spectralCount"`
Subsumed []string `json:"subsumed"`
Unique int `json:"unique"`
UniqueShared int `json:"uniqueShared"`
}
Gene is summary of a gene for output.
type Peptide struct {
AllottedSpectralCount float64 `json:"allottedSpectralCount"`
TotalSpectralCount float64 `json:"totalSpectralCount"`
Unique bool `json:"unique"`
UniqueShared bool `json:"uniqueShared"`
}
Peptide is summary of a gene's peptides for output.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.