Documentation
¶
Overview ¶
Package interpro provides the implementation of the `interpro download` command, which fetches InterPro protein records for a given taxonomy ID and writes them to an output file in TSV format.
Index ¶
- func DownloadAndWrite(_ context.Context, cmd *cli.Command) error
- func FormatTSVChunk(results []Result) string
- func Scan(_ context.Context, cmd *cli.Command) error
- type APIResponse
- type CompletedJob
- type ExtractConfig
- type FetchConfig
- type Metadata
- type PageStep
- type Result
- type RuntimeState
- type ScanRequest
- type SourceOrganism
- type SubmitArgs
- type SubmitInput
- type SubmittedJob
- type Taxon
- type WriteConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTSVChunk ¶
Types ¶
type APIResponse ¶
type CompletedJob ¶
type CompletedJob struct {
JobID string
SeqID string
Client ioehttp.Client
Config ScanRequest
}
CompletedJob holds state after polling reports FINISHED.
type Metadata ¶
type Metadata struct {
Accession string `json:"accession"`
Name string `json:"name"`
SourceDatabase string `json:"source_database"`
Length int `json:"length"`
SourceOrganism SourceOrganism `json:"source_organism"`
Gene string `json:"gene"`
InAlphafold bool `json:"in_alphafold"`
InBfvd bool `json:"in_bfvd"`
}
type ScanRequest ¶
type ScanRequest struct {
FastaPath string
Email string
OutputDir string
SeqType string
BaseURL string
PollInterval time.Duration
Timeout time.Duration
}
ScanRequest carries the user-provided inputs extracted from CLI flags.
type SourceOrganism ¶
type SubmitArgs ¶
type SubmitArgs = T.Tuple2[ioehttp.Client, ScanRequest]
SubmitArgs bundles the shared HTTP client and scan config. Uses project-wide T.Tuple2 convention for arg bundles.
type SubmitInput ¶
SubmitInput bundles client, config, and fasta record for submission.
type SubmittedJob ¶
type SubmittedJob struct {
JobID string
SeqID string
Client ioehttp.Client
Config ScanRequest
}
SubmittedJob holds state after a successful API submission.
Click to show internal directories.
Click to hide internal directories.