"按直系关系" can be translated as "according to direct lineage/kinship" or "based on immediate family relations" in English.
"According to direct lineage/kinship" emphasizes the direct blood or marital connection within a family.
"Based on immediate family relations" focuses on the closest family members, such as parents, children, and siblings.
Choose the expression that best fits the context of your sentence.