TopologicalAtomPairsFingerprints.pl - Generate topological atom pairs fingerprints for SD files
TopologicalAtomPairsFingerprints.pl SDFile(s)...
TopologicalAtomPairsFingerprints.pl [--AromaticityModel AromaticityModelType] [-a, --AtomIdentifierType AtomicInvariantsAtomTypes] [--AtomicInvariantsToUse "AtomicInvariant,AtomicInvariant..."] [--FunctionalClassesToUse "FunctionalClass1,FunctionalClass2..."] [--CompoundID DataFieldName or LabelPrefixString] [--CompoundIDLabel text] [--CompoundIDMode] [--DataFields "FieldLabel1,FieldLabel2,..."] [-d, --DataFieldsMode All | Common | Specify | CompoundID] [-f, --Filter Yes | No] [--FingerprintsLabel text] [-h, --help] [-k, --KeepLargestComponent Yes | No] [--MinDistance number] [--MaxDistance number] [--OutDelim comma | tab | semicolon] [--output SD | FP | text | all] [-o, --overwrite] [-q, --quote Yes | No] [-r, --root RootName] [-v, --VectorStringFormat ValuesString, IDsAndValuesString | IDsAndValuesPairsString | ValuesAndIDsString | ValuesAndIDsPairsString] [-w, --WorkingDir dirname] SDFile(s)...
Generate topological atom pairs fingerprints [ Ref 57, Ref 59, Ref 72 ] for SDFile(s) and create appropriate SD, FP or CSV/TSV text file(s) containing fingerprints vector strings corresponding to molecular fingerprints.
Multiple SDFile names are separated by spaces. The valid file extensions are .sdf and .sd. All other file names are ignored. All the SD files in a current directory can be specified either by *.sdf or the current directory name.
The current release of MayaChemTools supports generation of topological atom pairs corresponding to following -a, --AtomIdentifierTypes:
Based on the values specified for -a, --AtomIdentifierType and --AtomicInvariantsToUse, initial atom types are assigned to all non-hydrogen atoms in a molecule. Using the distance matrix for the molecule and initial atom types assigned to non-hydrogen atoms, all unique atom pairs within --MinDistance and --MaxDistance are identified and counted. An atom pair identifier is generated for each unique atom pair; the format of the atom pair identifier is:
The atom pair identifiers for all unique atom pairs corresponding to non-hydrogen atoms constitute topological atom pairs fingerprints of the molecule.
Example of SD file containing topological atom pairs fingerprints string data:
Example of FP file containing topological atom pairs fingerprints string data:
Example of CSV Text file containing topological atom pairs fingerprints string data:
The current release of MayaChemTools generates the following types of topological atom pairs fingerprints vector strings:
Specify aromaticity model to use during detection of aromaticity. Possible values in the current release are: MDLAromaticityModel, TriposAromaticityModel, MMFFAromaticityModel, ChemAxonBasicAromaticityModel, ChemAxonGeneralAromaticityModel, DaylightAromaticityModel or MayaChemToolsAromaticityModel. Default value: MayaChemToolsAromaticityModel.
The supported aromaticity model names along with model specific control parameters are defined in AromaticityModelsData.csv, which is distributed with the current release and is available under lib/data directory. Molecule.pm module retrieves data from this file during class instantiation and makes it available to method DetectAromaticity for detecting aromaticity corresponding to a specific model.
Specify atom identifier type to use for assignment of initial atom identifier to non-hydrogen atoms during calculation of topological atom pairs fingerprints. Possible values in the current release are: AtomicInvariantsAtomTypes, DREIDINGAtomTypes, EStateAtomTypes, FunctionalClassAtomTypes, MMFF94AtomTypes, SLogPAtomTypes, SYBYLAtomTypes, TPSAAtomTypes, UFFAtomTypes. Default value: AtomicInvariantsAtomTypes.
This value is used during AtomicInvariantsAtomTypes value of a, --AtomIdentifierType option. It's a list of comma separated valid atomic invariant atom types.
Possible values for atomic invariants are: AS, X, BO, LBO, SB, DB, TB, H, Ar, RA, FC, MN, SM. Default value: AS,X,BO,H,FC.
The atomic invariants abbreviations correspond to:
Atom type generated by AtomTypes::AtomicInvariantsAtomTypes class corresponds to:
Except for AS which is a required atomic invariant in atom types, all other atomic invariants are optional. Atom type specification doesn't include atomic invariants with zero or undefined values.
In addition to usage of abbreviations for specifying atomic invariants, the following descriptive words are also allowed:
AtomTypes::AtomicInvariantsAtomTypes module is used to assign atomic invariant atom types.
This value is used during FunctionalClassAtomTypes value of a, --AtomIdentifierType option. It's a list of comma separated valid functional classes.
Possible values for atom functional classes are: Ar, CA, H, HBA, HBD, Hal, NI, PI, RA. Default value [ Ref 24 ]: HBD,HBA,PI,NI,Ar,Hal.
The functional class abbreviations correspond to:
AtomTypes::FunctionalClassAtomTypes module is used to assign functional class atom types. It uses following definitions [ Ref 60-61, Ref 65-66 ]:
This value is --CompoundIDMode specific and indicates how compound ID is generated.
For DataField value of --CompoundIDMode option, it corresponds to datafield label name whose value is used as compound ID; otherwise, it's a prefix string used for generating compound IDs like LabelPrefixString<Number>. Default value, Cmpd, generates compound IDs which look like Cmpd<Number>.
Examples for DataField value of --CompoundIDMode:
Examples for LabelPrefix or MolNameOrLabelPrefix value of --CompoundIDMode:
The value specified above generates compound IDs which correspond to Compound<Number> instead of default value of Cmpd<Number>.
Specify compound ID column label for CSV/TSV text file(s) used during CompoundID value of --DataFieldsMode option. Default value: CompoundID.
Specify how to generate compound IDs and write to FP or CSV/TSV text file(s) along with generated fingerprints for FP | text | all values of --output option: use a SDFile(s) datafield value; use molname line from SDFile(s); generate a sequential ID with specific prefix; use combination of both MolName and LabelPrefix with usage of LabelPrefix values for empty molname lines.
Possible values: DataField | MolName | LabelPrefix | MolNameOrLabelPrefix. Default value: LabelPrefix.
For MolNameAndLabelPrefix value of --CompoundIDMode, molname line in SDFile(s) takes precedence over sequential compound IDs generated using LabelPrefix and only empty molname values are replaced with sequential compound IDs.
This is only used for CompoundID value of --DataFieldsMode option.
Comma delimited list of SDFiles(s) data fields to extract and write to CSV/TSV text file(s) along with generated fingerprints for text | both values of --output option.
This is only used for Specify value of --DataFieldsMode option.
Examples:
Specify how data fields in SDFile(s) are transferred to output CSV/TSV text file(s) along with generated fingerprints for text | both values of --output option: transfer all SD data field; transfer SD data files common to all compounds; extract specified data fields; generate a compound ID using molname line, a compound prefix, or a combination of both. Possible values: All | Common | specify | CompoundID. Default value: CompoundID.
Specify whether to check and filter compound data in SDFile(s). Possible values: Yes or No. Default value: Yes.
By default, compound data is checked before calculating fingerprints and compounds containing atom data corresponding to non-element symbols or no atom data are ignored.
SD data label or text file column label to use for fingerprints string in output SD or CSV/TSV text file(s) specified by --output. Default value: TopologicalAtomPairsFingerprints.
Print this help message.
Generate fingerprints for only the largest component in molecule. Possible values: Yes or No. Default value: Yes.
For molecules containing multiple connected components, fingerprints can be generated in two different ways: use all connected components or just the largest connected component. By default, all atoms except for the largest connected component are deleted before generation of fingerprints.
Minimum bond distance between atom pairs for generating topological atom pairs. Default value: 1. Valid values: positive integers and less than --MaxDistance.
Maximum bond distance between atom pairs for generating topological atom pairs. Default value: 10. Valid values: positive integers and greater than --MinDistance.
Delimiter for output CSV/TSV text file(s). Possible values: comma, tab, or semicolon Default value: comma
Type of output files to generate. Possible values: SD, FP, text, or all. Default value: text.
Overwrite existing files.
Put quote around column values in output CSV/TSV text file(s). Possible values: Yes or No. Default value: Yes.
New file name is generated using the root: <Root>.<Ext>. Default for new file names: <SDFileName><TopologicalAtomPairsFP>.<Ext>. The file type determines <Ext> value. The sdf, fpf, csv, and tsv <Ext> values are used for SD, FP, comma/semicolon, and tab delimited text files, respectively.This option is ignored for multiple input files.
Format of fingerprints vector string data in output SD, FP or CSV/TSV text file(s) specified by --output option. Possible values: IDsAndValuesString | IDsAndValuesPairsString | ValuesAndIDsString | ValuesAndIDsPairsString. Default value: IDsAndValuesString.
Examples:
Location of working directory. Default value: current directory.
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using atomic invariants atom types in IDsAndValuesString format and create a SampleTAPFP.csv file containing sequential compound IDs along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using atomic invariants atom types in IDsAndValuesString format and create SampleTAPFP.sdf, SampleTAPFP.fpf and SampleTAPFP.csv files containing sequential compound IDs in CSV file along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using DREIDING atom types in IDsAndValuesString format and create a SampleTAPFP.csv file containing sequential compound IDs along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using E-state types in IDsAndValuesString format and create a SampleTAPFP.csv file containing sequential compound IDs along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using DREIDING atom types in IDsAndValuesString format and create a SampleTAPFP.csv file containing sequential compound IDs along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using functional class atom types in IDsAndValuesString format and create a SampleTAPFP.csv file containing sequential compound IDs along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using MMFF94 atom types in IDsAndValuesString format and create a SampleTAPFP.csv file containing sequential compound IDs along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using SLogP atom types in IDsAndValuesString format and create a SampleTAPFP.csv file containing sequential compound IDs along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using SYBYL atom types in IDsAndValuesString format and create a SampleTAPFP.csv file containing sequential compound IDs along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using TPSA atom types in IDsAndValuesString format and create a SampleTAPFP.csv file containing sequential compound IDs along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using UFF atom types in IDsAndValuesString format and create a SampleTAPFP.csv file containing sequential compound IDs along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using atomic invariants atom types in IDsAndValuesPairsString format and create a SampleTAPFP.csv file containing sequential compound IDs along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 6 using atomic invariants atom types in IDsAndValuesString format and create a SampleTAPFP.csv file containing sequential compound IDs along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using only AS,X atomic invariants atom types in IDsAndValuesString format and create a SampleTAPFP.csv file containing sequential compound IDs along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using atomic invariants atom types in IDsAndValuesString format and create a SampleTAPFP.csv file containing compound ID from molecule name line along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using atomic invariants atom types in IDsAndValuesString format and create a SampleTAPFP.csv file containing compound IDs using specified data field along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using atomic invariants atom types in IDsAndValuesString format and create a SampleTAPFP.csv file containing compound ID using combination of molecule name line and an explicit compound prefix along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using atomic invariants atom types in IDsAndValuesString format and create a SampleTAPFP.csv file containing specific data fields columns along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using atomic invariants atom types in IDsAndValuesString format and create a SampleTAPFP.csv file containing common data fields columns along with fingerprints vector strings data, type:
To generate topological atom pairs fingerprints corresponding to bond distances from 1 through 10 using atomic invariants atom types in IDsAndValuesString format and create SampleTAPFP.sdf, SampleTAPFP.fpf and SampleTAPFP.csv files containing all data fields columns in CSV file along with fingerprints data, type:
InfoFingerprintsFiles.pl, SimilarityMatricesFingerprints.pl, AtomNeighborhoodsFingerprints.pl, ExtendedConnectivityFingerprints.pl, MACCSKeysFingerprints.pl, PathLengthFingerprints.pl, TopologicalAtomTorsionsFingerprints.pl, TopologicalPharmacophoreAtomPairsFingerprints.pl, TopologicalPharmacophoreAtomTripletsFingerprints.pl
Copyright (C) 2024 Manish Sud. All rights reserved.
This file is part of MayaChemTools.
MayaChemTools is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.