Library Manage
Library Manage is used to process uploaded local libraries that have not yet been fully registered or shared. The recommended workflow is: Refresh the records → Bind CID automatically → check and complete spectrum and compound fields → Register All / Register One → verify the MID and sharing settings in Shared Spectra List.
1. Reading uploads, automatic binding, and batch registration (Figures 1–3)
Click Refresh beside Local Spectra Library to load the current account's uploaded library files. The table separates local database statistics, on-chain registration, and server sharing.

| Column | Meaning and action |
|---|---|
| File ID / File Name / File Type / Load Date | Upload ID, file name, format, and load time. |
| Spectrum Num | Number of spectra in the file. Click the table icon beside the number to open Local Spectra List, including Spectrum ID, CID, PrecursorMz, RT, CE, IonMode/Adduct, Peak Num, and registration status. |
| Compound Num | Number of compounds in the file. Click the table icon beside the number to open Local Compound List and review or edit compound information. |
| Registered Spectrum | Number of spectra registered on-chain; Register All below starts batch registration. |
| Token Income | Total points earned by this file. |
| Bound CID | Number of compounds bound to system CIDs; Bind CID below starts automatic batch binding. |
| Shared Spectrum | Number of spectra shared to the server and searchable by other users. |
After a db or msp file is loaded, the system attempts binding automatically. You can also click Bind CID (batch BING ALL) manually. Only compounds without a bound CID are processed: db records use available PubChemId, CASId, Cid, and InChIKey values, while msp records use Cid and InChIKey values to match system compounds. A successful match writes the CID back to the compound and synchronises it to the related spectra. Unmatched records remain unbound for manual review.

When the spectrum fields are complete and CIDs have been bound, click Register All to register and share in batches. The task processes only spectra that are bound to a CID and not yet registered. It continues in the background even after you leave the page.

2. Completing fields manually and registering individual spectra (Figures 4–7)
If automatic binding fails, CID is shown as ?, or fields such as the adduct are incomplete, complete the record manually. Open the spectrum's CID editor, enter a system CID in Compound Key [Server], and click Query. Verify the returned PubChemCID, CAS, Formula, ExactMass, InChIKey, names, and structure, then click Bind CID to Spectrum ID.

Compound information can also be corrected in Local Compound List. The table contains local Compound ID, CID (Server), CAS ID, InChIKey, Formula, Name EN, Name CN, and Structure. Use the edit icons to change cells and confirm the changes, add structure information in the Structure column, and filter by field with the search controls.

In Local Spectra List, you can also edit spectrum fields such as CollisionEnergy and IonMode/Adduct. When CID and PrecursorMz are available, the adduct editor can suggest candidates based on the compound's exact mass and show the ppm error (±50 ppm). Treat this as assistance only, and confirm the result against the ion mode and experimental conditions.
After completing and reviewing a record, click Register on its row. Single Spectrum Register shows the Spectrum ID and current Adduct. Confirm ownership, License, and Query Cost, then click Register One. A bound CID is required before registration.

After registration, refresh both Shared Spectra List [Server] and the local list. The server list shows the newly assigned MID, CID, spectrum parameters, points, and sharing settings, while the local Register Status changes from Register to the assigned MID.

| Shared Spectra List field | Description |
|---|---|
| MID(Server) / CID(Server) | The server spectrum ID assigned during registration and the bound system compound CID. |
| Token Income · Registered | Reward points earned when this spectrum was registered. |
| Token Income · Queried | Accumulated points earned when other users view this spectrum. |
| Queried Costs | Points required for another user to unlock the complete spectrum. |
| Shared Settings / Share Operate | Edit sharing settings or use Stop to stop sharing with other users. |
3. Search visibility of local and shared spectra (Figure 8)
When the uploader searches through the Web interface or docker client using their own account identity, they can find their own uploaded but unshared local spectra. These results show Local as the Source. They belong only to the uploader and cannot be searched or read by other users.

| Spectrum status | Search and viewing permissions |
|---|---|
| Uploaded by you, not shared | Only the uploader can search and view these spectra through the Web interface or docker client; they are invisible to other users. |
| Registered and shared | All users can find matching records. Other users must sign in and unlock the complete spectrum and peak data according to Queried Costs. |
| Owner or already unlocked | The owner can view their own spectrum without a charge. Once another user has unlocked it, it enters their unlocked list and later views do not charge again. |
Related pages: Library Upload (file structure and field checks) · Points & Registration Rules (scoring and unlocking) · Private Spectrum (viewing and unlocking) · Token Manage (income, spending, and unlocked spectra)