|
| 1 | +# MNP-Flex setup |
| 2 | + |
| 3 | +ROBIN can submit methylation data to **MNP-Flex** and display the returned |
| 4 | +classification, quality-control, and MGMT results in the web interface. |
| 5 | +MNP-Flex is a commercial service provided by |
| 6 | +[Heidelberg Epignostix GmbH](https://epignostix.com/). |
| 7 | + |
| 8 | +## Before you begin |
| 9 | + |
| 10 | +You need: |
| 11 | + |
| 12 | +- An agreement with Epignostix covering use of MNP-Flex. |
| 13 | +- An Epignostix username and password with access to the MNP-Flex service. |
| 14 | +- A ROBIN workflow that produces the per-sample methylation parquet file. |
| 15 | +- Network access from the machine running ROBIN to the Epignostix service. |
| 16 | + |
| 17 | +ROBIN sends sample-derived methylation data to an external service. Confirm |
| 18 | +that this is permitted by your local information-governance and data-transfer |
| 19 | +policies before enabling the integration. |
| 20 | + |
| 21 | +## Configure credentials |
| 22 | + |
| 23 | +Set the credentials in the environment of the **server process running |
| 24 | +ROBIN**, before starting `robin workflow`: |
| 25 | + |
| 26 | +```bash |
| 27 | +export MNPFLEX_USERNAME="your-epignostix-username" |
| 28 | +export MNPFLEX_PASSWORD="your-epignostix-password" |
| 29 | +``` |
| 30 | + |
| 31 | +Then start ROBIN from the same shell: |
| 32 | + |
| 33 | +```bash |
| 34 | +robin workflow <data_folder> \ |
| 35 | + --work-dir <output_folder> \ |
| 36 | + --reference <reference.fa> \ |
| 37 | + --center <center_id> |
| 38 | +``` |
| 39 | + |
| 40 | +Both variables are required. If either is absent, ROBIN hides the MNP-Flex |
| 41 | +controls and does not submit samples. |
| 42 | + |
| 43 | +Do not put credentials in the repository, command history, workflow output, |
| 44 | +screenshots, or other files that may be shared. For a persistent deployment, |
| 45 | +configure these variables through the service manager or secret-management |
| 46 | +system used to launch ROBIN. |
| 47 | + |
| 48 | +!!! note "Legacy variable names" |
| 49 | + |
| 50 | + Older ROBIN code and release notes may refer to `MNPFLEX_USER` and |
| 51 | + `MNPFLEX_PASS`. Current GUI and batch integration uses |
| 52 | + `MNPFLEX_USERNAME` and `MNPFLEX_PASSWORD`; use the current names for new |
| 53 | + deployments. |
| 54 | + |
| 55 | +## Optional settings |
| 56 | + |
| 57 | +The defaults match the standard Epignostix integration. Change these only when |
| 58 | +Epignostix supplies different values: |
| 59 | + |
| 60 | +| Variable | Default | Purpose | |
| 61 | +|----------|---------|---------| |
| 62 | +| `MNPFLEX_BASE_URL` | `https://app.epignostix.com` | Epignostix API base URL | |
| 63 | +| `MNPFLEX_WORKFLOW_ID` | `18` | MNP-Flex workflow identifier | |
| 64 | +| `MNPFLEX_CLIENT_ID` | `ROBIN` | OAuth client identifier | |
| 65 | +| `MNPFLEX_CLIENT_SECRET` | `SECRET` | OAuth client secret | |
| 66 | +| `MNPFLEX_SCOPE` | empty | Optional OAuth scope | |
| 67 | + |
| 68 | +For example: |
| 69 | + |
| 70 | +```bash |
| 71 | +export MNPFLEX_WORKFLOW_ID="18" |
| 72 | +export MNPFLEX_BASE_URL="https://app.epignostix.com" |
| 73 | +``` |
| 74 | + |
| 75 | +## Confirm that it is enabled |
| 76 | + |
| 77 | +After restarting ROBIN: |
| 78 | + |
| 79 | +1. Open a sample page. |
| 80 | +2. Look for the **MNP-Flex results** section. |
| 81 | +3. Use **Generate MNP-Flex subset BED** to confirm that the sample methylation |
| 82 | + parquet can be prepared. |
| 83 | +4. Use **Run MNP-Flex analysis** to submit that sample. |
| 84 | + |
| 85 | +The samples overview also shows **mnpflex run all** when credentials are |
| 86 | +available. This runs MNP-Flex sequentially for eligible samples that do not |
| 87 | +already have results. |
| 88 | + |
| 89 | +ROBIN may automatically submit a completed sample when its analysis jobs have |
| 90 | +finished and no MNP-Flex result is present. |
| 91 | + |
| 92 | +## Inputs and outputs |
| 93 | + |
| 94 | +ROBIN reconstructs bedMethyl data from the sample parquet, prepares the subset |
| 95 | +required by MNP-Flex, uploads it, and retrieves the result bundle. |
| 96 | + |
| 97 | +Files are written within the sample output directory: |
| 98 | + |
| 99 | +```text |
| 100 | +<sample-id>/ |
| 101 | +├── <sample-id>.mnpflex.bed |
| 102 | +├── <sample-id>.MNPFlex.subset.bed |
| 103 | +└── mnpflex_results_<sample-id>/ |
| 104 | + └── bundle_summary.json |
| 105 | +``` |
| 106 | + |
| 107 | +Additional plots and result files may be present in the results directory. |
| 108 | +These files feed both the sample page and ROBIN-generated reports. |
| 109 | + |
| 110 | +## Troubleshooting |
| 111 | + |
| 112 | +**The MNP-Flex section or bulk button is missing** |
| 113 | + |
| 114 | +- Confirm both `MNPFLEX_USERNAME` and `MNPFLEX_PASSWORD` are set for the |
| 115 | + process that launches ROBIN. |
| 116 | +- Restart ROBIN after changing its environment. |
| 117 | +- If ROBIN is launched by a service, setting variables in an interactive shell |
| 118 | + does not change the service environment. |
| 119 | + |
| 120 | +**The sample cannot generate a subset BED** |
| 121 | + |
| 122 | +- Confirm the sample output directory contains `<sample-id>.parquet` or |
| 123 | + another sample parquet file. |
| 124 | +- Confirm methylation preprocessing completed successfully. |
| 125 | + |
| 126 | +**Authentication or upload fails** |
| 127 | + |
| 128 | +- Check the credentials with Epignostix. |
| 129 | +- Confirm the machine can reach `MNPFLEX_BASE_URL`. |
| 130 | +- Confirm any custom workflow ID, client ID, client secret, or scope with |
| 131 | + Epignostix. |
| 132 | +- Review the ROBIN log for messages containing `MNPFlex`. |
| 133 | + |
| 134 | +**Results do not appear immediately** |
| 135 | + |
| 136 | +- MNP-Flex processing is asynchronous and can take time. |
| 137 | +- Use the section's status and refresh controls, and check the ROBIN log for |
| 138 | + upload, polling, or result-download errors. |
0 commit comments