Use when converting `spdi2tbl`-style variant rows into reference and altered product sequences for coding or protein variants.
Pipeline helper that reads 8-column variant rows of the form rsid accn ofs del ins cls typ gene, fetches the referenced nucleotide or protein record from NCBI, and emits reference/product peptide sequences for non-genomic variants.
... | tbl2prod/home/vimalinx/miniforge3/envs/bio/bin/tbl2prod... | spdi2tblspdi2tbl output with reference and altered peptide strings# Full dbSNP-to-product pipeline
efetch -db snp -id 104894914 -format docsum | snp2hgvs | hgvs2spdi | spdi2tbl | tbl2prod
# Feed a prepared spdi2tbl-style table
cat variants.tsv | tbl2prod
# Save the resulting product table
cat variants.tsv | tbl2prod > products.tsv
tbl2prod the exact 8-column tabular rows produced by spdi2tbl or an equivalent generator.:+) and altered (:ins) definitions as needed..tbl files.rsid accn ofs del ins cls typ gene; malformed or differently ordered input will misparse silently.-h and --version are not implemented; with no stdin they simply produce no useful output.Genomic rows entirely, fetches sequence records with efetch -format gp, and uses gbf2xml, xtract, and several transmute transforms internally.rs104894914 NM_000513.2:688:T:+ <protein> and an altered product row such as rs104894914 NM_000513.2:688:T:C <protein>.sort-table ... | cut -f 1-2,4.