use std::fs::File;
use bio::io::fasta::Reader;
use std::io::BufReader;
pub fn parse_fasta(file_path: &str) -> Result<Vec<String>, std::io::Error> {
let file = File::open(file_path)?;
let reader = BufReader::new(file);
let records = Reader::new(reader)
.records()
.filter_map(Result::ok)
.map(|rec| {
String::from_utf8(rec.seq().to_owned()).unwrap_or_else(|_| String::from("Invalid"))
})
.collect();
Ok(records)
}