Download scripts/stride/chk_atom.c from OneScience-Group/Chainsaw: direct link, hf CLI and curl.
- Browser
- Download file 984 Bytes
-
https://huggingface.co/OneScience-Group/Chainsaw/resolve/main/scripts/stride/chk_atom.c
- Command line
-
hf download hf://OneScience-Group/Chainsaw/scripts/stride/chk_atom.c
-
curl -L -o chk_atom.c https://huggingface.co/OneScience-Group/Chainsaw/resolve/main/scripts/stride/chk_atom.c
984 Bytes
| int CheckAtom(char *At) | |
| { | |
| int AtomTypeCnt, AtomTypeNumber = 95; | |
| static char *Atom[MAX_AtomType] = { | |
| "AD1", "AD2", "AE1", "AE2", "C", "CA", "CB", "CD", "CD1", "CD2", "CE", "CE1", "CE2", | |
| "CE3", "CG", "CG1", "CG2", "CH2", "CH3", "CZ", "CZ2", "CZ3", "HG", "HG1", "HH", "HH2", | |
| "HZ", "HZ2", "HZ3", "N", "ND1", "ND2", "NE", "NE1", "NE2", "NH1", "NH2", "NZ", "O", | |
| "OD1", "OD2", "OE", "OE1", "OE2", "OG", "OG1", "OH", "OXT", "SD", "SG", "H", "HA", "HB", | |
| "HD1", "HD2", "HE", "HE1", "HE2", "HE3", "1H", "1HA", "1HB", "1HD", "1HD1", "1HD2", | |
| "1HE", "1HE2", "1HG", "1HG1", "1HG2", "1HH1", "1HH2", "1HZ", "2H", "2HA", "2HB", "2HD", | |
| "2HD1", "2HD2", "2HE", "2HE2", "2HG", "2HG1", "2HG2", "2HH1", "2HH2", "2HZ", "3H", "3HB", | |
| "3HD1", "3HD2", "3HE", "3HG1", "3HG2", "3HZ" | |
| }; | |
| for( AtomTypeCnt=0; AtomTypeCnt<AtomTypeNumber; AtomTypeCnt++ ) | |
| if( !strcmp(At,Atom[AtomTypeCnt]) ) | |
| return(SUCCESS); | |
| return(FAILURE); | |
| } | |