pub fn pdbreader_parallel(contents: &str) -> Vec<Record>
Expand description
Parse PDB file contents using parallel processing.
This function processes PDB file contents line-by-line using parallel processing to extract structured record data. It automatically handles atom serial number assignment for atoms that don’t have them, which is necessary for some PDB files with more than 99,999 atoms.
§Arguments
contents
- The complete PDB file contents as a string
§Returns
A vector of Record
variants representing the parsed PDB records.
§Features
This function is only available when the parallel
feature is enabled.
§Example
use knuckles_parse::pdbreader_parallel;
let pdb_content = "ATOM 1 N ALA A 1 20.154 16.967 27.462 1.00 11.18 N\n\
ATOM 2 CA ALA A 1 20.987 18.149 27.890 1.00 11.85 C";
let records = pdbreader_parallel(pdb_content);
println!("Parsed {} records", records.len());