Yes, it is possible to convert FASTA sequences into numeric form or extract their physicochemical properties and save the data in a CSV format. Here, I'll provide a Python script using the Biopython library to read the FASTA file and the Bio.SeqUtils module to compute the physicochemical properties. The script will output the data in a CSV format.
##Code to install Biopython if you haven't already and the script
pip install biopython
from Bio import SeqIO
from Bio.SeqUtils.ProtParam import ProteinAnalysis
In this example, we first import the `ProteinAnalysis` class from the `Bio.SeqUtils.ProtParam` module in BioPython. We then define a sample FASTA sequence and create a `ProteinAnalysis` object with the protein sequence.
Next, we use the various methods provided by the `ProteinAnalysis` class to extract different physicochemical properties of the protein sequence, such as molecular weight, amino acid composition, aromaticity, instability index, isoelectric point, and GRAVY (Grand Average of Hydropathicity) score.