🌵
Drylab
  • BASICS
    • 🌵Welcome to Drylab
  • API
    • 🌵API Overview
    • 💻Endpoints
      • POST /methods/raw
      • POST /methods/sections
      • POST /results/raw
      • POST /results/thematic-blocks
      • POST /results/thematic-modules
      • POST /figure-legends
      • POST /supplement
      • POST /create-conda-env
      • POST /datasets
  • CLI
    • 🌵DryLab CLI
    • 🔧Config file
    • Commands
      • drylab init
      • drylab env
Powered by GitBook
On this page
  • Request
  • Response
  1. API
  2. Endpoints

POST /methods/sections

Get the methods section of a scientific paper structured into distinct protocols, given a DOI or a PDF of a scientific paper.

Request

Content-Type: multipart/form-data

Accepted keys: doi and file

JSON Body (if using DOI):

{
  "doi": "10.1038/s41592-020-01005-z"
}

JSON Body (if uploading a PDF):

file: "path_to_file.pdf"

Note: If both a doi and a file key are present in the request, the API uses the file key by default.

Response

{
    "doi": "10.3390/ijms22031484",
    "paper_input_type": "file"
    "pdf_url": null, 
    "pdf_source_filename": "ijms-22-01484-v3.pdf",
    "pmcid": "PMC7867340",
    "methods_sections": [
        {
            "id": "method_1",
            "doi": "10.3390/ijms22031484",
            "order": 1,
            "title": "Title of protocol"
            "raw_text": "...text as extracted from the paper..."
            "mentioned_figures": ["Figure 1B"],
            "mentioned_tables": ["Table 2"],
            "mentioned_supplementary_files": ["Supplementary Figure 3"],
            "software_tools": [
                {
                  "name": "FastQC",
                  "version": "0.11.9",
                  "role": "Data quality check"
                },
            ]
        },
        {
            // additional sections here
        }
    ]
}

PreviousPOST /methods/rawNextPOST /results/raw

Last updated 4 days ago

💻