diff --git a/egcg_core/clarity.py b/egcg_core/clarity.py
index 0068e9d..39d03f8 100644
--- a/egcg_core/clarity.py
+++ b/egcg_core/clarity.py
@@ -113,7 +113,7 @@ def get_genome_version(sample_id, species=None):
 
 def sanitize_user_id(user_id):
     if isinstance(user_id, str):
-        return re.sub("[^\w_\-.]", "_", user_id)
+        return re.sub("[^\w]", "_", user_id)
 
 
 substitutions = (

Replace (.) dots in user sample name with underscores
Change the sanitize_user_id function to remove dots
https://github.com/EdinburghGenomics/EGCG-Core/blob/f54591f5420dc4b4f8241e080e594a5fd6c5f87a/egcg_core/clarity.py#L114
diff --git a/tests/test_clarity.py b/tests/test_clarity.py
index c4446fb..271d1d2 100644
--- a/tests/test_clarity.py
+++ b/tests/test_clarity.py
@@ -117,6 +117,7 @@ class TestClarity(TestEGCG):
 
     def test_sanitize_user_id(self):
         assert clarity.sanitize_user_id('this?that$other another:more') == 'this_that_other_another_more'
+        assert clarity.sanitize_user_id('this.that$other another:more') == 'this_that_other_another_more'
 
     def test_get_list_of_samples(self):
         exp_lims_sample_ids = ['this', 'that:01', 'other _L:01']

pip install -e .
parse_log_pytest
requirements.txt
pytest pytest-cov
apt-get update apt-get install -y gcc
3.6
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
asana==0.6.7
attrs==22.2.0
cached-property==1.5.2
certifi==2021.5.30
coverage==6.2
-e git+https://github.com/EdinburghGenomics/EGCG-Core.git@f54591f5420dc4b4f8241e080e594a5fd6c5f87a#egg=EGCG_Core
execnet==1.9.0
importlib-metadata==4.8.3
iniconfig==1.1.1
Jinja2==2.8
MarkupSafe==2.0.1
oauthlib==3.2.2
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyclarity-lims==0.4.8
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0
pytest-xdist==3.0.2
PyYAML==6.0.1
requests==2.14.2
requests-oauthlib==0.8.0
six==1.17.0
tomli==1.2.3
typing_extensions==4.1.1
zipp==3.6.0

name: EGCG-Core
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - asana==0.6.7
      - attrs==22.2.0
      - cached-property==1.5.2
      - coverage==6.2
      - execnet==1.9.0
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - jinja2==2.8
      - markupsafe==2.0.1
      - oauthlib==3.2.2
      - packaging==21.3
      - pluggy==1.0.0
      - py==1.11.0
      - pyclarity-lims==0.4.8
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-cov==4.0.0
      - pytest-xdist==3.0.2
      - pyyaml==6.0.1
      - requests==2.14.2
      - requests-oauthlib==0.8.0
      - six==1.17.0
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - zipp==3.6.0
prefix: /opt/conda/envs/EGCG-Core

tests/test_clarity.py::TestClarity::test_sanitize_user_id
tests/test_clarity.py::TestClarity::test_connection tests/test_clarity.py::TestClarity::test_find_project_from_sample tests/test_clarity.py::TestClarity::test_find_run_elements_from_sample tests/test_clarity.py::TestClarity::test_get_genotype_information_from_lims tests/test_clarity.py::TestClarity::test_get_list_of_samples tests/test_clarity.py::TestClarity::test_get_list_of_samples_broken tests/test_clarity.py::TestClarity::test_get_output_containers_from_sample_and_step_name tests/test_clarity.py::TestClarity::test_get_plate_id_and_well_from_lims tests/test_clarity.py::TestClarity::test_get_released_samples tests/test_clarity.py::TestClarity::test_get_run tests/test_clarity.py::TestClarity::test_get_sample tests/test_clarity.py::TestClarity::test_get_sample_gender tests/test_clarity.py::TestClarity::test_get_sample_names_from_plate_from_lims tests/test_clarity.py::TestClarity::test_get_sample_names_from_project_from_lims tests/test_clarity.py::TestClarity::test_get_sample_release_date tests/test_clarity.py::TestClarity::test_get_samples tests/test_clarity.py::TestClarity::test_get_samples_arrived_with tests/test_clarity.py::TestClarity::test_get_samples_genotyped_with tests/test_clarity.py::TestClarity::test_get_samples_sequenced_with tests/test_clarity.py::TestClarity::test_get_species_from_sample tests/test_clarity.py::TestClarity::test_get_user_sample_name tests/test_clarity.py::TestClarity::test_get_valid_lanes tests/test_clarity.py::TestClarity::test_route_samples_to_delivery_workflow_no_name tests/test_clarity.py::TestClarity::test_route_samples_to_delivery_workflow_with_name
egcg_core/clarity.py
egcg_core/clarity.py