Datasets:
Tasks:
Tabular Classification
Modalities:
Tabular
Languages:
No linguistic content
Size:
100K<n<1M
License:
Dataset Viewer
The dataset viewer is not available for this dataset.
Cannot get the config names for the dataset.
Error code: ConfigNamesError Exception: FileNotFoundError Message: Couldn't find any data file at /src/services/worker/chen1028/Cl-Containing-Compound. Couldn't find 'chen1028/Cl-Containing-Compound' on the Hugging Face Hub either: FileNotFoundError: Unable to find 'hf://datasets/chen1028/Cl-Containing-Compound@536a0feef386c3c3eab7d8f312e80b05647c2f13/80%_618272_train_binary.rds' with any supported extension ['.csv', '.tsv', '.json', '.jsonl', '.ndjson', '.parquet', '.geoparquet', '.gpq', '.arrow', '.txt', '.tar', '.xml', '.blp', '.bmp', '.dib', '.bufr', '.cur', '.pcx', '.dcx', '.dds', '.ps', '.eps', '.fit', '.fits', '.fli', '.flc', '.ftc', '.ftu', '.gbr', '.gif', '.grib', '.png', '.apng', '.jp2', '.j2k', '.jpc', '.jpf', '.jpx', '.j2c', '.icns', '.ico', '.im', '.iim', '.tif', '.tiff', '.jfif', '.jpe', '.jpg', '.jpeg', '.mpg', '.mpeg', '.msp', '.pcd', '.pxr', '.pbm', '.pgm', '.ppm', '.pnm', '.psd', '.bw', '.rgb', '.rgba', '.sgi', '.ras', '.tga', '.icb', '.vda', '.vst', '.webp', '.wmf', '.emf', '.xbm', '.xpm', '.BLP', '.BMP', '.DIB', '.BUFR', '.CUR', '.PCX', '.DCX', '.DDS', '.PS', '.EPS', '.FIT', '.FITS', '.FLI', '.FLC', '.FTC', '.FTU', '.GBR', '.GIF', '.GRIB', '.PNG', '.APNG', '.JP2', '.J2K', '.JPC', '.JPF', '.JPX', '.J2C', '.ICNS', '.ICO', '.IM', '.IIM', '.TIF', '.TIFF', '.JFIF', '.JPE', '.JPG', '.JPEG', '.MPG', '.MPEG', '.MSP', '.PCD', '.PXR', '.PBM', '.PGM', '.PPM', '.PNM', '.PSD', '.BW', '.RGB', '.RGBA', '.SGI', '.RAS', '.TGA', '.ICB', '.VDA', '.VST', '.WEBP', '.WMF', '.EMF', '.XBM', '.XPM', '.aiff', '.au', '.avr', '.caf', '.flac', '.htk', '.svx', '.mat4', '.mat5', '.mpc2k', '.ogg', '.paf', '.pvf', '.raw', '.rf64', '.sd2', '.sds', '.ircam', '.voc', '.w64', '.wav', '.nist', '.wavex', '.wve', '.xi', '.mp3', '.opus', '.3gp', '.3g2', '.avi', '.asf', '.flv', '.mp4', '.mov', '.m4v', '.mkv', '.webm', '.f4v', '.wmv', '.wma', '.ogm', '.mxf', '.nut', '.AIFF', '.AU', '.AVR', '.CAF', '.FLAC', '.HTK', '.SVX', '.MAT4', '.MAT5', '.MPC2K', '.OGG', '.PAF', '.PVF', '.RAW', '.RF64', '.SD2', '.SDS', '.IRCAM', '.VOC', '.W64', '.WAV', '.NIST', '.WAVEX', '.WVE', '.XI', '.MP3', '.OPUS', '.3GP', '.3G2', '.AVI', '.ASF', '.FLV', '.MP4', '.MOV', '.M4V', '.MKV', '.WEBM', '.F4V', '.WMV', '.WMA', '.OGM', '.MXF', '.NUT', '.pdf', '.PDF', '.zip'] Traceback: Traceback (most recent call last): File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 66, in compute_config_names_response config_names = get_dataset_config_names( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 161, in get_dataset_config_names dataset_module = dataset_module_factory( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1027, in dataset_module_factory raise FileNotFoundError( FileNotFoundError: Couldn't find any data file at /src/services/worker/chen1028/Cl-Containing-Compound. Couldn't find 'chen1028/Cl-Containing-Compound' on the Hugging Face Hub either: FileNotFoundError: Unable to find 'hf://datasets/chen1028/Cl-Containing-Compound@536a0feef386c3c3eab7d8f312e80b05647c2f13/80%_618272_train_binary.rds' with any supported extension ['.csv', '.tsv', '.json', '.jsonl', '.ndjson', '.parquet', '.geoparquet', '.gpq', '.arrow', '.txt', '.tar', '.xml', '.blp', '.bmp', '.dib', '.bufr', '.cur', '.pcx', '.dcx', '.dds', '.ps', '.eps', '.fit', '.fits', '.fli', '.flc', '.ftc', '.ftu', '.gbr', '.gif', '.grib', '.png', '.apng', '.jp2', '.j2k', '.jpc', '.jpf', '.jpx', '.j2c', '.icns', '.ico', '.im', '.iim', '.tif', '.tiff', '.jfif', '.jpe', '.jpg', '.jpeg', '.mpg', '.mpeg', '.msp', '.pcd', '.pxr', '.pbm', '.pgm', '.ppm', '.pnm', '.psd', '.bw', '.rgb', '.rgba', '.sgi', '.ras', '.tga', '.icb', '.vda', '.vst', '.webp', '.wmf', '.emf', '.xbm', '.xpm', '.BLP', '.BMP', '.DIB', '.BUFR', '.CUR', '.PCX', '.DCX', '.DDS', '.PS', '.EPS', '.FIT', '.FITS', '.FLI', '.FLC', '.FTC', '.FTU', '.GBR', '.GIF', '.GRIB', '.PNG', '.APNG', '.JP2', '.J2K', '.JPC', '.JPF', '.JPX', '.J2C', '.ICNS', '.ICO', '.IM', '.IIM', '.TIF', '.TIFF', '.JFIF', '.JPE', '.JPG', '.JPEG', '.MPG', '.MPEG', '.MSP', '.PCD', '.PXR', '.PBM', '.PGM', '.PPM', '.PNM', '.PSD', '.BW', '.RGB', '.RGBA', '.SGI', '.RAS', '.TGA', '.ICB', '.VDA', '.VST', '.WEBP', '.WMF', '.EMF', '.XBM', '.XPM', '.aiff', '.au', '.avr', '.caf', '.flac', '.htk', '.svx', '.mat4', '.mat5', '.mpc2k', '.ogg', '.paf', '.pvf', '.raw', '.rf64', '.sd2', '.sds', '.ircam', '.voc', '.w64', '.wav', '.nist', '.wavex', '.wve', '.xi', '.mp3', '.opus', '.3gp', '.3g2', '.avi', '.asf', '.flv', '.mp4', '.mov', '.m4v', '.mkv', '.webm', '.f4v', '.wmv', '.wma', '.ogm', '.mxf', '.nut', '.AIFF', '.AU', '.AVR', '.CAF', '.FLAC', '.HTK', '.SVX', '.MAT4', '.MAT5', '.MPC2K', '.OGG', '.PAF', '.PVF', '.RAW', '.RF64', '.SD2', '.SDS', '.IRCAM', '.VOC', '.W64', '.WAV', '.NIST', '.WAVEX', '.WVE', '.XI', '.MP3', '.OPUS', '.3GP', '.3G2', '.AVI', '.ASF', '.FLV', '.MP4', '.MOV', '.M4V', '.MKV', '.WEBM', '.F4V', '.WMV', '.WMA', '.OGM', '.MXF', '.NUT', '.pdf', '.PDF', '.zip']
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Dataset Summary
Binary classification of chlorine presence using simulated MS1 isotopic patterns. Inputs are six engineered features; label has_cl indicates Cl-containing (1) vs non-Cl (0).
Data Sources and Generation
- Simulated MS1 peaks (M, M+1, M+2, M+3, M+4) for PubChem molecular formulas.
- Counts: 968,442 non-Cl; 386,420 Cl (1Cl: 185,303; 2Cl: 117,566; 3–5Cl: 83,551).
- Features: mz0, int2_o_int0, int1_o_int0, RI2_RI1, mz_2_0, mz_1_0.
- Class balancing: downsampled non-Cl to 386,420 (total 772,840).
- Splits: 80% train (618,272), 20% test (154,568).
- Files: 968442_non_cl_filter_S10.rds, 386420_cl_data.rds, 80%_618272_train_binary.rds, 20%_154568_test_binary.rds.
How train.csv and test.csv were created
- Source splits come from the RDS files above: 80%_618272_train_binary.rds (train) and 20%_154568_test_binary.rds (test).
- Conversion was done locally using Python with pyreadr and pandas (see
data/converter.ipynb
). - Steps:
- Read each .rds table using pyreadr.read_r(...)
- Optionally cast numeric columns to float32/int32 for compact CSVs
- Save to CSV with index=False as
train.csv
andtest.csv
Example code used:
import pyreadr, pandas as pd
train_df = next(iter(pyreadr.read_r("80%_618272_train_binary.rds").values()))
test_df = next(iter(pyreadr.read_r("20%_154568_test_binary.rds").values()))
train_df.to_csv("train.csv", index=False)
test_df.to_csv("test.csv", index=False)
Features
- mz0: m/z of M
- int2_o_int0: intensity ratio M+2/M
- int1_o_int0: intensity ratio M+1/M
- RI2_RI1: (M+2/M) − (M+1/M)
- mz_2_0: m/z(M+2) − m/z(M)
- mz_1_0: m/z(M+1) − m/z(M)
- has_cl: target label (0/1)
Usage
from datasets import load_dataset
# Load CSVs from the Hub using the CSV builder
ds = load_dataset(
"csv",
data_files={
"train": "hf://datasets/chen1028/Cl-Containing-Compound/train.csv",
"test": "hf://datasets/chen1028/Cl-Containing-Compound/test.csv",
}
)
Citation
@article{doi:10.1021/acs.analchem.3c05124,
author = {Zhao, Tingting and Wawryk, Nicholas J. P. and Xing, Shipei and Low, Brian and Li, Gigi and Yu, Huaxu and Wang, Yukai and Shen, Qiming and Li, Xing-Fang and Huan, Tao},
title = {ChloroDBPFinder: Machine Learning-Guided Recognition of Chlorinated Disinfection Byproducts from Nontargeted LC-HRMS Analysis},
journal = {Analytical Chemistry},
volume = {96},
number = {6},
pages = {2590-2598},
year = {2024},
doi = {10.1021/acs.analchem.3c05124},
note = {PMID: 38294426},
url = {https://doi.org/10.1021/acs.analchem.3c05124},
- Downloads last month
- 98