zavolanlab / htsinfer

Infer metadata for your downstream analysis straight from your RNA-seq data
Apache License 2.0
10 stars 22 forks source link

Test warning for deprecated Pandas feature #118

Closed uniqueg closed 1 year ago

uniqueg commented 1 year ago

Running Pytest produces multiple instances of the following depreciation warning:

tests/test_get_library_source.py: 10 warnings
  /home/uniqueg/Work/zavolab/htsinfer/htsinfer/get_library_source.py:271: FutureWarning: In a future version of pandas all arguments of StringMethods.split except for the argument 'pat' will be keyword-only.
    ]] = dat.target_id.str.split('|', 4, expand=True)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

The issue could be fixed (and thus future versions of Pandas supported) by making use of the n keyword argument in the .split() method.