ProximileAdmin commited on
Commit
6120962
·
verified ·
1 Parent(s): 8e631e3

Update create_diffusion_dataset.py

Browse files
Files changed (1) hide show
  1. create_diffusion_dataset.py +2 -1
create_diffusion_dataset.py CHANGED
@@ -20,6 +20,7 @@ import shutil
20
 
21
  # Global configuration
22
  MAX_PROTEINS_TO_PROCESS = 500
 
23
 
24
  class ProteinDataEnricher:
25
  """
@@ -796,7 +797,7 @@ class ProteinNetworkConversationDataset:
796
  if enriched_data.get('sequence'):
797
  # Show first 50 and last 20 amino acids
798
  seq = enriched_data['sequence']
799
- if len(seq) > 70:
800
  seq_preview = f"{seq[:50]}...{seq[-20:]}"
801
  else:
802
  seq_preview = seq
 
20
 
21
  # Global configuration
22
  MAX_PROTEINS_TO_PROCESS = 500
23
+ TRUNCATE_MIDDLE_ABOVE_THIS = 200
24
 
25
  class ProteinDataEnricher:
26
  """
 
797
  if enriched_data.get('sequence'):
798
  # Show first 50 and last 20 amino acids
799
  seq = enriched_data['sequence']
800
+ if len(seq) > TRUNCATE_MIDDLE_ABOVE_THIS:
801
  seq_preview = f"{seq[:50]}...{seq[-20:]}"
802
  else:
803
  seq_preview = seq