Skip to content

Commit

Permalink
removal of resource type prefixes (not needed), removal of duplicates…
Browse files Browse the repository at this point in the history
… of images (e.g. rocket.png), and correction of links to JB images (in static/img)
  • Loading branch information
stuchalk committed Dec 22, 2023
1 parent 580d2b3 commit 1d9cca1
Show file tree
Hide file tree
Showing 31 changed files with 20 additions and 178 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed book/images/iupac_and_wf.jpg
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
9 changes: 0 additions & 9 deletions book/ingredients/ing_pubchem_pugrest.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ This paper includes several protocols designed to help users to get familiar wit
* **Basic Protocol 7**: [Finding compounds annotated with classifications or ontological terms](https://currentprotocols.onlinelibrary.wiley.com/doi/10.1002/cpz1.217#cpz1217-prot-0008)
* **Basic Protocol 8**: [Finding stereoisomers and isotopomers of a compound through identity search](https://currentprotocols.onlinelibrary.wiley.com/doi/10.1002/cpz1.217#cpz1217-prot-0009)

Finally, one of the developers at PubChem, Dr. Sunghwan Kim, has developed some [tutorials](ing_pubchem_pugrest.md) about the PubChem API,
Finally, one of the developers at PubChem, Dr. Sunghwan Kim, has developed some [tutorials](pubchem_pugrest) about the PubChem API,
the Power User Group - Representation State Transfer ([PUG-REST](https://pubchem.ncbi.nlm.nih.gov/docs/pug-rest)) service.

## References
Expand Down
9 changes: 9 additions & 0 deletions book/ingredients/pubchem_pugrest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# PubChem PUG-REST API

The following samples detail different aspects of using the PubChem PUG-REST Application Programming Interface (API).

- [Part 1 - Basic syntax of PUG-REST request URL](pubchem_pugrest1.ipynb)
- [Part 2 - Accessing PubChem data using a chemical name](pubchem_pugrest2.ipynb)
- [Part 3 - Using a SMILES or InChI string as an input query](pubchem_pugrest3.ipynb)

Extensive documentation about the API can be found [here](https://pubchem.ncbi.nlm.nih.gov/docs/pug-rest).
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@
"plt.ylabel(r'Log $\\epsilon$ ($L\\ mol^{-1}\\ cm^{-1}$)') # Set the name of the y-label\n",
"plt.title('UV spectrum of salicyclic acid') # Set the title of the graph\n",
"plt.grid() # Show grid lines\n",
"plt.savefig('rec_uvvis_metadata_fig.png') # Saves the figure to your current directory.\n",
"plt.savefig('uvvis_metadata_fig.png') # Saves the figure to your current directory.\n",
" # File path can be updated to suit\n",
"plt.show() # Plot the graph to the screen"
]
Expand Down
File renamed without changes
10 changes: 5 additions & 5 deletions book/school/sch_excel_import.md → book/school/excel_import.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ import .csv, .tsv and other files and not let you choose what the encoding is.
system there may be some selections that won't work on your computer.

Figure 1
![fig1](../images/sch_excel_import_fig1.jpg)
![fig1](../images/excel_import_fig1.jpg)
Caption: The Excel import dialog (a) and the options for 'File origin' (b)

Using the open file dialog is important if your text file contains unicode (e.g., UTF-8). If you double-click on a .csv,
Expand All @@ -94,7 +94,7 @@ Excel you will be able to use the dialog in Figure 1a to choose the correct enco
correctly in Excel (see Figure 2b).

Figure 2
![fig2](../images/sch_excel_import_fig2.jpg)
![fig2](../images/excel_import_fig2.jpg)
Caption: Importing a unicode (UTF-8) '.csv' file into Excel directly (a), and using the Excel file oping dialog (b)

### 2.2 End of line characters
Expand All @@ -103,7 +103,7 @@ This can result in extra blank lines begin added by Excel to the imported file w
CR character, and a 'line-feed' LF character is at the end of line.

Figure 3
![fig3](../images/sch_excel_import_fig3.jpg)
![fig3](../images/excel_import_fig3.jpg)
Caption: Different end-of-line character options from a text file.

### 2.3 Data types in Excel
Expand All @@ -116,7 +116,7 @@ misinterpreted as dates if the column data type is left as 'General'. In this s
addin quotes around the CASRN and adding a '='before the first quote (Figure 4b).

Figure 4
![fig4](../images/sch_excel_import_fig4.jpg)
![fig4](../images/excel_import_fig4.jpg)
Caption: CASRNs in (4a) and advanced options for interpretting numeric values (4b)

```{Note}
Expand All @@ -137,7 +137,7 @@ As an example, the value one thousand, two hundred and thirty-four point fifty-s
- In Latin America and continental Europe as: 1.234,56

Figure 5
![fig5](../images/sch_excel_import_fig5.jpg)
![fig5](../images/excel_import_fig5.jpg)
Caption: Data types for columns in Excel (a) and advanced options for interpretting numeric values (b)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ get a JSON file returned (see below). The JSON file is formatted using the [JSO
plugin for Firefox and all the fields have been collapsed to make it easy to see the whole file at
http://api.crossref.org/works/10.1515/pac-2018-1010.

![fig](../images/sch_sheets_citations_crossref_api.jpg)
![fig](../images/gsheets_citations_crossref_api.jpg)

Caption: JSON output from the Crossref API

Expand Down
4 changes: 2 additions & 2 deletions book/standards/std_learn_spectra.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ approach that is always possible is to encode the data as one or more tables in
a tab-delimited text file (TSV) supplemented with the required metadata to undestand and properly interpreted the data.
Metadata is usually encoded in XML or JSON data files, although other standard open formats may also be possible.

More on this approach can be found at [Preparing Chemical Data for FAIR Sharing - A Minimalist Approach](../techniques/tec_sharing_chemdata.md).
More on this approach can be found at [Preparing Chemical Data for FAIR Sharing - A Minimalist Approach](../techniques/sharing_chemdata).

## What metadata?

Associated data is critical for reusing spectral data sets. Guidance on this is offered in the reports of the
[FAIRSpec IUPAC project](https://iupac.org/project/2019-031-1-024/). Some details are also included in
[Creating a UV/Vis (meta)data file structure for small molecule characterisation](../recipes/rec_uvvis_metadata.ipynb).
[Creating a UV/Vis (meta)data file structure for small molecule characterisation](../recipes/uvvis_metadata.ipynb).

It is always important to include

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ be used to fix misspelling of systematic names amd it is really useful as a teac
structure and ask them to name it, checking the names with OPSIN. For data science OPSIN also has an [API](https://opsin.ch.cam.ac.uk/instructions.html) and returns
information back in JSON for easy use within scripting languages and other tools.

![fig1](../images/utn_opsin_api_fig1.jpg)
![fig1](../images/opsin_api_fig1.jpg)

OPSIN can deal with names that include [greek letters and superscripts](https://opsin.ch.cam.ac.uk/instructions.html).
It also has the capability to interpret mixtures of substances. This is useful for situations like getting identifiers for
Expand Down
158 changes: 0 additions & 158 deletions requirements.txt

This file was deleted.

0 comments on commit 1d9cca1

Please sign in to comment.