Skip to main content

A toxic assigner used to classify potentially toxic chemicals from a list of formulas of compounds.

Project description

ToxAssign

Scrutinizer Code Quality Build Status License: MIT MOST logo

ToxAssign is designed to take the output of MFAssignR and process the toxic compounds into an easily readable and understandable format.

Contents

Why?

   This project has been designed in tandem with MOST's BioPROTEIN project to act as a precursor to live animal testing of completely novel food sources. This is intended to decrease the number of live animal tests required as to both decrease cost and increase ethical use of research resources. This project also seeks to serve as a useful tool in researching potential food sources for desperate times such as common agricultural wastes and potential future reprocessing research. To mee this goal this project uses entirely open source and free to use tools in its full workflow, including MZMine and the previously mentioned MFAssignR.

Installation

The installation of this project is very simple.

Install with pip3
         $ pip3 install ToxAssign

Usage

   To operate this tool, the user will need to place the csv files containing formulas they want to process in an empty folder along with the open food tox csv and the remove csv as in figure 29. The OpenFoodTox file contains the database of toxic compounds with their related formulas and the Remove file contains compounds that are not found on the PubChem database and thus are classified by hand. Initial Folder Contents The formulas must match in format and must have a header above them labeled “formula” to be properly recognized. The files must also have the format of "(sign) (compound).csv" to be properly recognized. Then, the user will open a terminal window inside of the folder with the data to be processed and run the command toxassign. This will begin to output to the terminal with an output that looks similar to the following figure, starting with the name of the first compound to be processed followed by a print out of all the matched compounds and their assignment. Output Finally, there may be records that are not recognized by PubChem's database or are under a different name. To manage these a local database has been collated to deal with and categorize these compounds. When you classify unfound records, ensure to add them to the Remove.csv file for later use in the format already demonstrated in the file. The safety column falls into two broad categories: safe, determined by the keywords safe, flavoring agent, fragrance, or supplement; and as other determined by any other keywords.

Output

Once the code has terminated the directory will contain 4 new files and one directory per compound. The 4 new files, totalTox, totalToxFiltered, totalUnchecked, and totalUnfound, will contain all of the toxic records, all of the toxic records sorted by toxicity, all of the records not sorted, and all of the records not found in the PubChem database. final folder contents The folders created by ToxAssign are each named after a compound delivered in the input. Each folder contains "+/- MainOut”, “+/- SetFound”, “+/- SetToxicFiltered”, “+/- SetUnchecked”, and “+/- SetUnfoundCopy”. compound Folder Contents MainOut contains the compounds that either had a large unknown error, those that timed out when accessing the PubChem server, or those that were deemed safe by being food additives. Main Out Contents SetFound contains compounds that were not found on PubChem but were identified in the list of compounds found by hand, sorted by unsafe and safe. Set Found Contents SetUnchecked contains compounds that were found on PubChem but did not have enough information and SetUnfound contains compounds that were not found on PubChem or in the list of compounds found by hand. Finally SetToxic contains all the compounds that contain either safety classes or toxic records, at the top by acute toxicity and at the bottom containing their safety classes or no data for toxic records. Set Toxic Contents

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ToxAssign-0.3.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

ToxAssign-0.3.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file ToxAssign-0.3.0.tar.gz.

File metadata

  • Download URL: ToxAssign-0.3.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for ToxAssign-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b358ca6e7d699f35f144f02f434db388d99ba50682efad6f1d6fe671cb137044
MD5 8646709ffb0506b283d27a363d77520f
BLAKE2b-256 17bbc401c58801e360c1eb88a5dd0559eec848e98a2b0ac105451e0beeed4164

See more details on using hashes here.

File details

Details for the file ToxAssign-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: ToxAssign-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for ToxAssign-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d881d04b01fea16416d2376cc18b86811f3a22601b11be09373131918ada6424
MD5 7daf25e73b20be046a967dc531548458
BLAKE2b-256 28d8c33a0d2c86cb7c5a51ebc35cd787c8c63041642d537fc94edfc5ce906b44

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page