python-mssev
This library contains several utilities and scores commonly used in multiple sclerosis studies.
Installation
pip install mssev
Usage
import mssev as ms
Calculating irreversible disability
If you want to calculate some irreversible disability measure (such as the Expanded Disability Status Scale or EDSS), you can do so with the following code:
followups["IEDSS"] = ms.irreversible_ds(followups, pid="pid", ds="edss", t="date")
Calculating the MSSS
The Multiple Sclerosis Severity Score (MSSS) is obtained by normalising the Expanded Disability Status Scale (EDSS) score for disease duration and has been a valuable tool in cross-sectional studies. You can read the original article here.
You can calculate the MSSS for every patient with the following:
patients["MSSS"] = ms.MSSS(patients, ds="edss", duration="dd")
If you want to calculate the MSSS for each follow-up assessment, you can do so like this:
followups["MSSS"] = ms.MSSS(followups, ds="edss", duration="dd")
If you have a cohort of pediatric-onset MS (POMS) patients, you should use the
Ped-MSSS score (see the article here).
For that, you can either pass ref="santoro" to the MSSS function or use the PedMSSS
alias:
# both are equivalent
patients["PedMSSS"] = ms.MSSS(patients, ref="santoro", ds="edss", duration="dd")
patients["PedMSSS"] = ms.PedMSSS(patients, ds="edss", duration="dd")
Calculating the ARMSS
The ARMSS (Age-Related Multiple Sclerosis Severity) score is the result of standardizing the EDSS by age. Using age for the calculation instead of disease duration offers several advantages, not least of which are its availability, ease of measurement and absence of bias. If you want more information, you should read the original article.
You can easily calculate the ARMSS for every patient like this:
patients["ARMSS"] = ms.ARMSS(patients, ds="edss", age="ageatedss")
Or alternatively, you can calculate it for every follow-up assessment like this:
followups["ARMSS"] = ms.ARMSS(followups, ds="edss", age="ageatedss")
Calculating the P-MSSS
The patient-derived MS Severity Score (P-MSSS) enables patients to rank their disability relative to others with similar disease duration. It does not require clinician input which means it can be use in a remote setting or as a more cost- effective alternative outcome measure for epidemiologic research. If you want more information, you should check the original article here.
In mssev, the P-MSSS score is implemented by the PMSSS function:
patients["PMSSS"] = ms.PMSSS(patients, ds="pdds", duration="dd")
Metadata
Release files for mssev 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mssev-0.5.2.tar.gz | 26.3 kB | Without provenance | Details for mssev-0.5.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mssev-0.5.2-py3-none-any.whl | Python 3 | none | any | Details for mssev-0.5.2-py3-none-any.whl |
Total release size: 50.7 kB
Release files / mssev-0.5.2.tar.gz
| Download URL | mssev-0.5.2.tar.gz |
|---|---|
| Size | 26.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70b390b01636cb7636bedeacf17a0df066b081e12d0e044d2bed4b834066873d
|
|
BLAKE2b-256 checksum How to use checksums |
08b4e630b36c1d6f2fa6a71980649df217a9079714c63a3a11a924398bf1f35a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.2
|
Release files / mssev-0.5.2-py3-none-any.whl
| Download URL | mssev-0.5.2-py3-none-any.whl |
|---|---|
| Size | 24.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e4c71fdb9b104525407174585d06455e85ad9561abd9b18b87124e8f6e3a0b6
|
|
BLAKE2b-256 checksum How to use checksums |
cce80fbb3cf6296c4d0df2be1ab168c6ce878b06ce0614a8ce288fe4e373e9da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.2
|
Security for mssev 0.5.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.