Bsoft 2.1.4
Bernard's software package
rwFASTA.h File Reference

Header file for reading and writing FASTA sequence files. More...

#include "rwmolecule.h"

Functions

int readFASTA (Bstring &filename, Bmolgroup *molgroup)
 Reads FASTA format sequence files. More...
 
int writeFASTA (Bstring &filename, Bmolgroup *molgroup)
 Writes FASTA format sequence files. More...
 

Detailed Description

Header file for reading and writing FASTA sequence files.

Author
Bernard Heymann
Date
Created: 20001112
Modified: 20001112
Format: Protein sequence file format

Function Documentation

◆ readFASTA()

int readFASTA ( Bstring filename,
Bmolgroup molgroup 
)

Reads FASTA format sequence files.

Parameters
&filenamesequence file name.
*molgroupmolecule group.
Returns
int number of molecules read (<0 if reading failed).
FASTA format:
>1hiwa TRIMERIC HIV-1 MATRIX PROTEIN   MOLECULE: HIV-1 MATRIX PROTEIN;   CHAIN:
VLSGGELDKWEKIRLRPGGKKQYKLKHIVWASRELERFAVNPGLLETSEGCRQILGQLQPSLQTGSEELRSLYNTIAVLY
CVHQRIDVKDTKEALDKIEEEQNKSKKKAQQAAAD

◆ writeFASTA()

int writeFASTA ( Bstring filename,
Bmolgroup molgroup 
)

Writes FASTA format sequence files.

Parameters
&filenamesequence file name.
*molgroupmolecule group.
Returns
int number of molecules written (<0 if writing failed).