Applying a maximum sample name length of just 10 bytes is unreasonable. Even 20 would be tight. How about 32 or 64 characters?
Example run:
$ time ~/repositories/VCF2Dis/bin/VCF2Dis -i Sirococcus_tsugae_St135_filtered.vcf -o Sirococcus_tsugae_St135_filtered.distance
warning : Sample name too long [ St620_S240_L007 ] length is 15 biger (10byte),new Name is _S2r0_b007
warning : Sample name too long [ St602_S239_L007 ] length is 15 biger (10byte),new Name is _S239bh007
warning : Sample name too long [ St558_S236_L007 ] length is 15 biger (10byte),new Name is _S936_L307
warning : Sample name too long [ St557_S235_L007 ] length is 15 biger (10byte),new Name is yS235_k007
warning : Sample name too long [ St601_S238_L007 ] length is 15 biger (10byte),new Name is _d238_L0q7
warning : Sample name too long [ St535_S233_L007 ] length is 15 biger (10byte),new Name is XSR33_L007
warning : Sample name too long [ St135_S246_L007 ] length is 15 biger (10byte),new Name is _Sf46_L00w
warning : Sample name too long [ St533_S231_L007 ] length is 15 biger (10byte),new Name is _S2Y1_LJ07
warning : Sample name too long [ St626_S1_L005 ] length is 13 biger (10byte),new Name is 26_e1_L00b
warning : Sample name too long [ St559_S237_L007 ] length is 15 biger (10byte),new Name is _S237_L507
warning : Sample name too long [ St137_S222_L007 ] length is 15 biger (10byte),new Name is _S2E2_C007
warning : Sample name too long [ St619_S2_L005 ] length is 13 biger (10byte),new Name is 19162_L005
warning : Sample name too long [ St145_S224_L007 ] length is 15 biger (10byte),new Name is _S2246L007
warning : Sample name too long [ St540_S234_L007 ] length is 15 biger (10byte),new Name is _S234ln007
warning : Sample name too long [ St140_S223_L007 ] length is 15 biger (10byte),new Name is _S22pqL007
warning : Sample name too long [ St623_S241_L007 ] length is 15 biger (10byte),new Name is _S240_L307
warning : Sample name too long [ St527_S225_L007 ] length is 15 biger (10byte),new Name is _S225_Lco7
warning : Sample name too long [ St132_S221_L007 ] length is 15 biger (10byte),new Name is _S294_L007
warning : Sample name too long [ St532_S230_L007 ] length is 15 biger (10byte),new Name is 9S830_L007
warning : Sample name too long [ St529_S227_L007 ] length is 15 biger (10byte),new Name is _Sg27_b007
warning : Sample name too long [ St625_S242_L007 ] length is 15 biger (10byte),new Name is 7S2428L007
warning : Sample name too long [ St530_S228_L007 ] length is 15 biger (10byte),new Name is _7228_L207
warning : Sample name too long [ St528_S226_L007 ] length is 15 biger (10byte),new Name is _SK26_Q007
warning : Sample name too long [ St531_S229_L007 ] length is 15 biger (10byte),new Name is _42299L007
warning : Sample name too long [ St534_S232_L007 ] length is 15 biger (10byte),new Name is rS232_L00r
Total Sample Number to construct p-distance matrix is [ 25 ]
Start To Cal ...
Start To Create P_distance ...
P_distance is created done ...
Warning: [/mnt/apps/users/pcock/conda/bin/Rscript] should install latest R package : [ape] and [ggtree] first
real 0m0.849s
user 0m1.527s
sys 0m0.059s
The output matrix uses the automatically assigned names, but interpreting this complicated as the user would have to parse your warning messages.
The warning message is unclear. There is a typo, "biger" --> "bigger" , and a missing space. My suggested wording:
warning : Sample name too long [ St620_S240_L007 ] length is 15 biger (10byte),new Name is _S2r0_b007
-->
warning : Sample name too long [ St620_S240_L007 ] length 15, max 10, new Name is _S2r0_b007
Also the replacement names seem to be based on the last 10 character chunks with partly overwritten fragments of the original names. I suspect memory corruption here?
Applying a maximum sample name length of just 10 bytes is unreasonable. Even 20 would be tight. How about 32 or 64 characters?
Example run:
The output matrix uses the automatically assigned names, but interpreting this complicated as the user would have to parse your warning messages.
The warning message is unclear. There is a typo, "biger" --> "bigger" , and a missing space. My suggested wording:
-->
Also the replacement names seem to be based on the last 10 character chunks with partly overwritten fragments of the original names. I suspect memory corruption here?