MCPcopy Create free account
hub / github.com/MG-RAST/Shock / Format

Method Format

shock-server/node/file/format/multi/multi.go:94–104  ·  view source on GitHub ↗
(s *seq.Seq, w io.Writer)

Source from the content-addressed store, hash-verified

92}
93
94func (r *Reader) Format(s *seq.Seq, w io.Writer) (n int, err error) {
95 switch {
96 case r.format == "fastq":
97 return fastq.Format(s, w)
98 case r.format == "fasta":
99 return fasta.Format(s, w)
100 case r.format == "sam":
101 return sam.Format(s, w)
102 }
103 return 0, errors.New("unknown sequence format")
104}

Callers

nothing calls this directly

Implementers 4

Readershock-server/node/file/format/multi/mu
Readershock-server/node/file/format/fastq/fa
Readershock-server/node/file/format/fasta/fa
Readershock-server/node/file/format/sam/sam.

Calls 1

FormatMethod · 0.65

Tested by

no test coverage detected